Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.47ms] Passed 4 tests
Analyzing server-side resources used by Disable Styles & Scripts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.55 ▼2.00 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.62 ▼16.99 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.80 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 78.21 ▼21.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.09 ▲0.45 |
Disable S&S /wp-admin/options-general.php?page=disable-styles-scripts | 3.23 | 31.11 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable Styles & Scripts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.66 ▼0.87 | 1.71 ▼0.28 | 43.17 ▲4.81 |
Dashboard /wp-admin | 2,210 ▲25 | 4.88 ▼0.98 | 110.45 ▲10.75 | 39.12 ▼2.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.01 | 40.28 ▼0.46 | 35.63 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 20.93 ▼2.28 | 649.38 ▼27.66 | 60.36 ▼1.10 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.01 | 95.18 ▼38.16 | 43.38 ▼6.14 |
Disable S&S /wp-admin/options-general.php?page=disable-styles-scripts | 880 | 2.19 | 22.29 | 31.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-styles-scripts/disable-styles-scripts.php:227
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/disable-styles-scripts/views/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== disable-styles-scripts ===
)
disable-styles-scripts/disable-styles-scripts.php Passed 13 tests
"Disable Styles & Scripts" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Disable selected plugin (and/or theme) styles and scripts. Set conditions which will be evaluated.
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
No dangerous file extensions were detected191 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 86 | 191 |
PHP code Passed 2 tests
Analyzing 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.54 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 1 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 158.55KB | 44.33KB | ▼ 72.04% |