Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.96ms] Passed 4 tests
A check of server-side resources used by Just Disable It
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.83 ▲4.87 |
Dashboard /wp-admin | 3.41 ▲0.10 | 55.81 ▼1.02 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 55.55 ▲5.63 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.93 ▼17.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 44.37 ▲9.13 |
Just Disable It /wp-admin/options-general.php?page=just_disable_it | 3.32 | 40.76 |
Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Just Disable It
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.28 | 1.81 ▲0.31 | 42.82 ▲1.41 |
Dashboard /wp-admin | 2,199 ▲19 | 5.49 ▼0.19 | 95.78 ▲3.15 | 42.99 ▲2.54 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.15 ▲0.16 | 35.59 ▼6.59 | 35.28 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▼21 | 22.96 ▲4.67 | 654.25 ▲39.90 | 67.45 ▼1.56 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.02 | 101.23 ▼5.57 | 43.71 ▼4.95 |
Just Disable It /wp-admin/options-general.php?page=just_disable_it | 1,137 | 2.03 | 28.14 | 40.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'JustDisableIt\\Model\\SettingModel' not found in wp-content/plugins/just-disable-it/templates/settings/field/checkbox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/just-disable-it/templates/settings/page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/just-disable-it/plugin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Disable features settings page.), #2 (Disable admin menu options.)
just-disable-it/plugin.php 92% from 13 tests
The entry point to "Just Disable It" version 1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("just-disable-it.php" instead of "plugin.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 plugin1,334 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 525 | 531 | 1,313 |
JSON | 2 | 0 | 0 | 12 |
Markdown | 1 | 8 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 19 | 17.27% |
▷ Public methods | 93 | 84.55% |
▷ Protected methods | 15 | 13.64% |
▷ Private methods | 2 | 1.82% |
Functions | 16 | |
▷ Named functions | 1 | 6.25% |
▷ Anonymous functions | 15 | 93.75% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 52.82KB | 20.72KB | ▼ 60.78% |
screenshot-2.png | 66.78KB | 25.17KB | ▼ 62.31% |