Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.88ms] Passed 4 tests
Analyzing server-side resources used by Disable JS & CSS of Plugins
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.64 ▼2.32 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.70 ▼6.19 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.10 ▼7.65 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.47 ▼11.37 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.63 ▲2.42 |
Disable JS & CSS /wp-admin/options-general.php?page=ath-hide-scripts | 3.26 | 35.77 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Disable JS & CSS of Plugins
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,524 ▲752 | 14.21 ▼0.24 | 4.52 ▲2.38 | 41.48 ▼1.08 |
Dashboard /wp-admin | 2,304 ▲127 | 6.02 ▲0.44 | 91.07 ▼1.66 | 41.13 ▼5.64 |
Posts /wp-admin/edit.php | 2,215 ▲112 | 2.29 ▲0.24 | 40.85 ▲0.18 | 35.41 ▼4.16 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.59 ▲0.42 | 657.51 ▲15.18 | 53.74 ▼7.90 |
Media Library /wp-admin/upload.php | 1,515 ▲118 | 4.80 ▲0.51 | 106.74 ▲3.72 | 44.99 ▲2.43 |
Disable JS & CSS /wp-admin/options-general.php?page=ath-hide-scripts | 1,159 | 2.16 | 30.03 | 25.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Disable_Plugins_Scripts_Configs' not found in wp-content/plugins/disable-plugins-scripts/class-disable-plugins-scripts-main.php:12
- > PHP Fatal error
Uncaught Error: Class 'Disable_Plugins_Scripts_Main' not found in wp-content/plugins/disable-plugins-scripts/templates/page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-plugins-scripts/ath-disable-plugins-scripts.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected
disable-plugins-scripts/ath-disable-plugins-scripts.php 92% from 13 tests
"Disable JS & CSS of Plugins" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("disable-plugins-scripts.php" instead of "ath-disable-plugins-scripts.php")
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 plugin8,379 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 2,390 | 2,424 | 8,081 |
PHP | 6 | 47 | 112 | 287 |
Markdown | 1 | 2 | 0 | 10 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 7 | |
▷ Global constants | 7 | 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
No PNG files were detected