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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.70 ▲1.90 |
Dashboard /wp-admin | 3.33 ▲0.03 | 41.04 ▼6.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.32 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 76.51 ▼22.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.40 ▲5.47 |
Omen Maps /wp-admin/options-general.php?page=omen-maps-config | 3.23 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.62 ▼0.74 | 1.65 ▼0.21 | 37.20 ▼4.06 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.97 | 108.82 ▲8.73 | 44.39 ▲5.14 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.00 ▼0.00 | 48.12 ▲13.80 | 41.10 ▲6.17 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.23 ▼4.91 | 608.81 ▼52.86 | 73.34 ▲26.66 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▼0.05 | 92.58 ▼8.00 | 40.22 ▼4.38 |
Omen Maps /wp-admin/options-general.php?page=omen-maps-config | 930 | 2.07 | 25.02 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 27 | 56 | 245 |
PO File | 1 | 15 | 19 | 47 |
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 code | 0.26 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 8 | 88.89% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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