79% omen-maps

Code Review | WP Omen Maps

WordPress plugin WP Omen Maps scored79%from 54 tests.

About plugin

  • Plugin page: omen-maps
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Oct 4, 2016
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: Nikita.Omen666 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.39ms] Passed 4 tests

An overview of server-side resources used by WP Omen Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.70 ▲1.90
Dashboard /wp-admin3.33 ▲0.0341.04 ▼6.87
Posts /wp-admin/edit.php3.38 ▲0.0348.32 ▲2.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0376.51 ▼22.95
Media Library /wp-admin/upload.php3.25 ▲0.0337.40 ▲5.47
Omen Maps /wp-admin/options-general.php?page=omen-maps-config3.2327.44

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Omen Maps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.62 ▼0.741.65 ▼0.2137.20 ▼4.06
Dashboard /wp-admin2,210 ▲225.85 ▲0.97108.82 ▲8.7344.39 ▲5.14
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0048.12 ▲13.8041.10 ▲6.17
Add New Post /wp-admin/post-new.php1,549 ▲1618.23 ▼4.91608.81 ▼52.8673.34 ▲26.66
Media Library /wp-admin/upload.php1,386 ▼24.17 ▼0.0592.58 ▼8.0040.22 ▼4.38
Omen Maps /wp-admin/options-general.php?page=omen-maps-config9302.0725.0228.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/omen-maps/omen-maps.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/omen-maps/views/google_map.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/omen-maps/views/admin/configs.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/omen-maps/views/yandex_map.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: maps, yandex, integration, google

omen-maps/omen-maps.php Passed 13 tests

This is the main PHP file of "WP Omen Maps" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Simply add Google/Yandex map to your WordPress site via shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin292 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72756245
PO File1151947

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin