Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼15.28ms] Passed 4 tests
Server-side resources used by Optimize More!
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.58 ▲0.13 |
Dashboard /wp-admin | 3.53 ▲0.22 | 47.32 ▲0.36 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.65 ▼5.56 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.14 | 85.39 ▼56.05 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.62 ▲4.09 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Optimize More!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.61 ▼0.79 | 2.05 ▲0.34 | 45.29 ▲2.14 |
Dashboard /wp-admin | 2,238 ▲50 | 4.88 ▼0.02 | 103.59 ▼11.01 | 35.61 ▼9.35 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.06 ▲0.01 | 39.17 ▼4.24 | 34.16 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.12 ▲0.08 | 683.67 ▲59.69 | 68.55 ▲15.86 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.21 ▼0.08 | 95.05 ▼1.78 | 39.61 ▼3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/optimize-more/includes/Functions.php
- > /wp-content/plugins/optimize-more/assets/js/index.php
- > /wp-content/plugins/optimize-more/includes/index.php
- > /wp-content/plugins/optimize-more/view/index.php
- > /wp-content/plugins/optimize-more/includes/library/index.php
- > /wp-content/plugins/optimize-more/assets/index.php
- > /wp-content/plugins/optimize-more/view/admin/parts/sidebar.php
- > /wp-content/plugins/optimize-more/assets/css/index.php
- > /wp-content/plugins/optimize-more/view/admin/index.php
- > /wp-content/plugins/optimize-more/view/admin/parts/index.php
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/delay/delay-css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/optimize-more/view/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/partials/extra/custom-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/async.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/remove/remove-js.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/async/advanced-defer-js.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/remove.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/async/defer-js.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/import.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/preload.php:3
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
optimize-more/optimize-more.php 85% from 13 tests
The main PHP script in "Optimize More!" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 195 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,812 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,434 | 572 | 6,066 |
CSS | 1 | 113 | 7 | 627 |
JavaScript | 3 | 2 | 0 | 119 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 45.17 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 4 | 2.41% |
▷ Public methods | 148 | 89.16% |
▷ Protected methods | 15 | 9.04% |
▷ Private methods | 3 | 1.81% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 36 | 94.74% |
▷ Class constants | 2 | 5.26% |
▷ Public constants | 2 | 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
No PNG images were found in this plugin