Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.26ms] 75% from 4 tests
Analyzing server-side resources used by WP Plugin Manager - Deactivate plugins per page
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,325.01ms on /wp-admin/admin.php?page=htpm_recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.29 ▲1.98 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.03 ▼3.24 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.63 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.89 ▲3.04 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 31.17 ▼0.44 |
Recommendations /wp-admin/admin.php?page=htpm_recommendations | 7.57 | 1,325.01 |
Plugin Manager /wp-admin/admin.php?page=htpm-options | 3.24 | 32.83 |
Server storage [IO: ▲0.37MB] [DB: ▲0.67MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Illegal file modification found: 1 file (5.00KB) outside of "wp-content/plugins/wp-plugin-manager/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/htpm-mu-plugin.php
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
htpm_status |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Plugin Manager - Deactivate plugins per page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.28 ▼0.00 | 1.85 ▲0.20 | 38.61 ▼6.21 |
Dashboard /wp-admin | 2,225 ▲48 | 5.57 ▲0.04 | 81.50 ▼3.86 | 39.33 ▼4.21 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.02 ▼0.02 | 35.22 ▼1.21 | 30.40 ▼10.55 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 23.30 ▲5.12 | 663.39 ▲20.81 | 51.85 ▼22.56 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.18 ▲0.02 | 95.47 ▼4.02 | 41.35 ▼3.58 |
Recommendations /wp-admin/admin.php?page=htpm_recommendations | 2,886 | 2.23 | 27.35 | 68.18 |
Plugin Manager /wp-admin/admin.php?page=htpm-options | 905 | 2.36 | 34.49 | 37.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- htpm_status
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plugin-manager/includes/plugin-options-page.php:6
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-plugin-manager/includes/plugin-options-page.php on line 5
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-plugin-manager/includes/plugin-options-page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-plugin-manager/mu-plugin/htpm-mu-plugin.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-plugin-manager/includes/plugin-options-page.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: deactivate plugin, plugin manager, disable plugin, performance, wp plugin manager
wp-plugin-manager/plugin-main.php 85% from 13 tests
"WP Plugin Manager - Deactivate plugins per page" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-plugin-manager.php" instead of "plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,123 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 86 | 68 | 1,755 |
PHP | 8 | 220 | 196 | 1,203 |
JavaScript | 3 | 43 | 32 | 165 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/recommended-plugins/assets/images/extensions/htmega-pro.png | 4.60KB | 4.78KB | 0.00% |
(invalid) includes/recommended-plugins/assets/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
includes/recommended-plugins/assets/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |
assets/images/ui-icons_777777_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
includes/recommended-plugins/assets/images/extensions/ht-script-pro.png | 6.03KB | 2.71KB | ▼ 55.09% |