Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼5.87ms] Passed 4 tests
Server-side resources used by Supervisor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 38.90 ▼3.69 |
Dashboard /wp-admin | 3.69 ▲0.34 | 50.29 ▼12.79 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 48.99 ▲0.08 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 95.84 ▼7.08 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.96 ▲7.47 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
supv_version |
can_compress_scripts |
supv_secure_login_settings |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Supervisor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲115 | 14.37 ▲0.02 | 1.84 ▼0.02 | 37.85 ▼6.24 |
Dashboard /wp-admin | 2,260 ▲89 | 5.60 ▼0.06 | 94.84 ▼3.88 | 43.32 ▲0.85 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.03 ▲0.01 | 41.42 ▲3.47 | 34.88 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,563 ▲27 | 23.57 ▲0.39 | 638.85 ▲23.59 | 53.95 ▲3.19 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.40 ▲0.20 | 100.16 ▲4.24 | 43.23 ▲1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please fix the following
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Cards/AutoloadCardView.php:12
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/SystemInfoView.php:10
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Cards/WordPressCardView.php:12
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Cards/SecureLoginCardView.php:13
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Cards/TransientsCardView.php:12
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Pages/DashboardView.php:17
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Notices/SSLView.php:12
- > PHP Fatal error
Uncaught Error: Class 'SUPV\\Admin\\Views\\AbstractView' not found in wp-content/plugins/supervisor/src/Admin/Views/Notices/HTTPSView.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #1 is required in supervisor/assets to your readme.txt
supervisor/supervisor.php Passed 13 tests
Analyzing the main PHP file in "Supervisor" version 1.3.0
80 characters long description:
A plugin to help improve the performance and security of your WordPress install.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,970 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 734 | 1,672 | 2,260 |
CSS | 2 | 29 | 1 | 1,553 |
JavaScript | 2 | 31 | 43 | 135 |
SVG | 1 | 1 | 0 | 16 |
JSON | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 16 | 61.54% |
Methods | 150 | |
▷ Static methods | 23 | 15.33% |
▷ Public methods | 135 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 10.00% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 18 | |
▷ Global constants | 6 | 33.33% |
▷ Class constants | 12 | 66.67% |
▷ Public constants | 12 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/supervisor-logo.png | 11.21KB | 5.19KB | ▼ 53.74% |