Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/plugin-disabler/autoload.class.php+38
fopen(wp-content/mu-plugins/pdm.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.37ms] Passed 4 tests
A check of server-side resources used by Plugin Disabler
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.67 ▼35.43 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.10 ▼40.95 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 7.08 ▼45.16 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 7.06 ▼83.94 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 7.24 ▼27.33 |
Plugin Disabler /wp-admin/tools.php?page=pi-settings-page | 2.10 | 6.36 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
pi_post_types |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Disabler
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.54 ▼0.73 | 1.70 ▼0.28 | 39.26 ▼10.72 |
Dashboard /wp-admin | 2,212 ▲24 | 5.85 ▲0.94 | 107.93 ▲8.01 | 39.85 ▼5.39 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.01 | 36.02 ▼5.29 | 33.42 ▼6.00 |
Add New Post /wp-admin/post-new.php | 6,237 ▲4,692 | 21.56 ▲3.30 | 895.26 ▲283.26 | 58.50 ▲1.54 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▼0.07 | 93.65 ▼3.13 | 41.40 ▼4.92 |
Plugin Disabler /wp-admin/tools.php?page=pi-settings-page | 870 | 2.06 | 29.07 | 29.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/plugin-disabler/autoload.class.php+38
fopen(wp-content/mu-plugins/pdm.php): failed to open stream: No such file or directory
- Zombie WordPress options were found after uninstall: 7 options
- pi_post_types
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=pi-settings-page
- > Warning in wp-content/plugins/plugin-disabler/autoload.class.php+38
fopen(wp-content/mu-plugins/pdm.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/tools.php?page=pi-settings-page
- > Warning in wp-content/plugins/plugin-disabler/autoload.class.php+39
fwrite() expects parameter 1 to be resource, bool given
- > GET request to /wp-admin/tools.php?page=pi-settings-page
- > Warning in wp-content/plugins/plugin-disabler/autoload.class.php+40
fclose() expects parameter 1 to be resource, bool given
- > GET request to /wp-admin/tools.php?page=pi-settings-page
- > Notice in wp-content/plugins/plugin-disabler/classes/autoload/pibackend_ui.class.php+42
Undefined index: pi_hp_nonce_field
- > GET request to /wp-admin/tools.php?page=pi-settings-page
- > Notice in wp-content/plugins/plugin-disabler/classes/autoload/pibackend_ui.class.php+70
Undefined index: pi_op_nonce_field
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant WPEH_PI_PLUGIN_PATH - assumed 'WPEH_PI_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/plugin-disabler/autoload.class.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-disabler/classes/plugin-disabler-mu.php:5
- > PHP Warning
scandir(WPEH_PI_PLUGIN_PATH/classes/autoload): failed to open dir: No such file or directory in wp-content/plugins/plugin-disabler/autoload.class.php on line 19
- > PHP Warning
fopen(WPMU_PLUGIN_DIR/pdm.php): failed to open stream: No such file or directory in wp-content/plugins/plugin-disabler/autoload.class.php on line 38
- > PHP Warning
Use of undefined constant WPMU_PLUGIN_DIR - assumed 'WPMU_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/plugin-disabler/autoload.class.php on line 38
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/plugin-disabler/autoload.class.php on line 22
- > PHP Warning
fclose() expects parameter 1 to be resource, bool given in wp-content/plugins/plugin-disabler/autoload.class.php on line 40
- > PHP Warning
scandir(): (errno 2): No such file or directory in wp-content/plugins/plugin-disabler/autoload.class.php on line 19
- > PHP Warning
Use of undefined constant WPMU_PLUGIN_DIR - assumed 'WPMU_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/plugin-disabler/autoload.class.php on line 32
- > PHP Warning
fwrite() expects parameter 1 to be resource, bool given in wp-content/plugins/plugin-disabler/autoload.class.php on line 39
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/tools.php?page=pi-settings-page
- > Network (severe)
https://www.paypalobjects.com/en_PH/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
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
6 plugin tags: disable plugin on pages, gtmetrix optimization, plugin remoevr, pagespeed optimization, optimization...
plugin-disabler/wpeh-plugin-disabler.php 85% from 13 tests
"Plugin Disabler" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 272 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("plugin-disabler.php" instead of "wpeh-plugin-disabler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected411 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 113 | 16 | 329 |
CSS | 1 | 3 | 0 | 82 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin