Benchmarks
Plugin footprint 65% 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.09MB] [CPU: ▼3.53ms] Passed 4 tests
An overview of server-side resources used by Disable Plugins on Pages Posts (Plugin Load Organizer)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 39.25 ▼1.31 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.81 ▲1.64 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.58 ▲0.68 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.29 ▼15.14 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 40.83 ▲4.64 |
Plugin load organizer /wp-admin/options-general.php?page=bestwp-plugin-organizer | 3.31 | 38.31 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 1 file (3.78KB) outside of "wp-content/plugins/disable-plugins-on-pages-posts/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/bestwpPluginOrganizer.php
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Plugins on Pages Posts (Plugin Load Organizer)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.65 ▲0.36 | 1.63 ▼0.58 | 41.05 ▼6.68 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.04 | 93.12 ▼0.90 | 43.28 ▼4.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.03 | 34.79 ▼1.26 | 34.60 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.28 ▲5.71 | 680.35 ▼24.71 | 55.12 ▼8.67 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▼0.00 | 107.06 ▼9.81 | 46.33 ▼4.00 |
Plugin load organizer /wp-admin/options-general.php?page=bestwp-plugin-organizer | 909 | 1.77 | 26.33 | 26.93 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'pluginUninstallation' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant BESTWP_PLO_PLUGIN_DIR - assumed 'BESTWP_PLO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-plugins-on-pages-posts/plugin-load-organizer.php on line 4
- > PHP Warning
include_once(BESTWP_PLO_PLUGIN_DIR/inc/options.php): failed to open stream: No such file or directory in wp-content/plugins/disable-plugins-on-pages-posts/plugin-load-organizer.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_url() in wp-content/plugins/disable-plugins-on-pages-posts/mu-plugins/bestwpPluginOrganizer.php:6
- > PHP Warning
include_once(): Failed opening 'BESTWP_PLO_PLUGIN_DIR/inc/options.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/disable-plugins-on-pages-posts/plugin-load-organizer.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/disable-plugins-on-pages-posts/index.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: plugin organizer
disable-plugins-on-pages-posts/index.php 77% from 13 tests
"Disable Plugins on Pages Posts (Plugin Load Organizer)" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-plugins-on-pages-posts.php" instead of "index.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin626 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 101 | 19 | 393 |
CSS | 2 | 5 | 16 | 138 |
JavaScript | 2 | 10 | 16 | 95 |
PHP code Passed 2 tests
An short overview of 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.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin