Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲7.40ms] Passed 4 tests
A check of server-side resources used by ZMPlugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 44.22 ▲5.22 |
Dashboard /wp-admin | 4.25 ▲0.95 | 53.24 ▲5.54 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 59.04 ▲12.47 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 97.75 ▲6.35 |
Media Library /wp-admin/upload.php | 4.18 ▲0.95 | 44.74 ▲14.24 |
Dashboard /wp-admin/admin.php?page=zmplugin | 4.15 | 38.93 |
Settings /wp-admin/admin.php?page=zmplugin-settings | 4.16 | 36.81 |
Server storage [IO: ▲1.66MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 326 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
zmplugin-settings_sanitize |
zmplugin-settings_int |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
zmplugin-settings_bool |
zmplugin-settings_text |
zmplugin-settings_smtp_settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ZMPlugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲51 | 14.04 ▼0.32 | 1.79 ▲0.07 | 43.77 ▼0.88 |
Dashboard /wp-admin | 2,221 ▲47 | 5.65 ▲0.02 | 89.11 ▼6.28 | 41.35 ▼2.06 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.00 ▲0.04 | 39.56 ▼5.35 | 35.56 ▲0.09 |
Add New Post /wp-admin/post-new.php | 2,198 ▲672 | 22.17 ▼1.33 | 707.30 ▲22.41 | 49.86 ▼12.36 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.17 ▼0.04 | 97.60 ▼14.35 | 41.17 ▼3.84 |
Dashboard /wp-admin/admin.php?page=zmplugin | 1,085 | 2.67 | 56.63 | 37.83 |
Settings /wp-admin/admin.php?page=zmplugin-settings | 1,690 | 2.89 | 65.87 | 32.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 12 options in the database
- db_upgraded
- zmplugin-settings_bool
- can_compress_scripts
- widget_theysaidso_widget
- zmplugin-settings_int
- widget_recent-posts
- zmplugin-settings_smtp_settings
- zmplugin-settings_url
- zmplugin-settings_sanitize
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zmplugin/zmplugin.php
- 168× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\BuildSingleControll' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/_class_background_img.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\com_section_nav' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/com_content_section_nav.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\_text' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/after.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\BuildSingleControll' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/_attrs_height.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\_class' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/menu_container_class.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\BuildSingleControll' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/_toggle_true_false.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\BuildSingleControll' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/offcanvas_module.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\com_section_html' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/com_main_section_html.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\BuildSingleControll' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/_class_width.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZMP\\Plugin\\Config\\ThemeCustomizer\\Controlls\\BuildSingleControll' not found in wp-content/plugins/zmplugin/config/themecustomizer/controlls/image_class.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2 in zmplugin/assets to your readme.txt
zmplugin/zmplugin.php Passed 13 tests
The entry point to "ZMPlugin" version 1.0.27 is a PHP file that has certain tags in its header comment area
140 characters long description:
Essential tools for webmasters; cookie notice, analytics integration, private mode, SMTP mail and extension for ZuestMedia WordPress Themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin19,125 lines of code in 321 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 304 | 5,525 | 1,916 | 10,901 |
PO File | 3 | 3,303 | 4,209 | 6,882 |
JavaScript | 8 | 498 | 270 | 789 |
CSS | 6 | 68 | 66 | 553 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 305 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 305 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 703 | |
▷ Static methods | 56 | 7.97% |
▷ Public methods | 626 | 89.05% |
▷ Protected methods | 76 | 10.81% |
▷ Private methods | 1 | 0.14% |
Functions | 143 | |
▷ Named functions | 11 | 7.69% |
▷ Anonymous functions | 132 | 92.31% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/themecustomizer/img/alphacolor-transparency-grid.png | 2.58KB | 2.80KB | 0.00% |