Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼139.98ms] Passed 4 tests
Server-side resources used by WP Theme Optimizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 36.02 ▲11.89 |
Dashboard /wp-admin | 3.08 ▲0.03 | 47.85 ▲2.26 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 46.15 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 92.86 ▼559.56 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 31.04 ▼2.38 |
WP Theme Optimizer /wp-admin/options-general.php?page=wpto | 3.07 | 31.60 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Theme Optimizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.77 ▲0.15 | 9.39 ▼0.82 | 43.79 ▼7.57 |
Dashboard /wp-admin | 2,972 ▲44 | 5.91 ▼0.26 | 151.29 ▼10.88 | 112.38 ▼8.80 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.69 ▲0.00 | 70.89 ▼0.10 | 93.73 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.73 ▲0.43 | 393.59 ▼4.57 | 105.81 ▼1.25 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 4.99 ▼0.03 | 163.76 ▼10.33 | 113.91 ▼2.41 |
WP Theme Optimizer /wp-admin/options-general.php?page=wpto | 1,858 | 3.52 | 82.54 | 90.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 36 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpto
- > Notice in wp-content/plugins/wp-theme-optimizer/admin/partials/wpto-admin-display.php+78
Trying to access array offset on value of type bool
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-theme-optimizer/public/partials/wpto-public-display.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-theme-optimizer/admin/partials/wpto_theme_scripts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-theme-optimizer/admin/partials/wpto_wc.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-theme-optimizer/includes/partials/public-misc.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-theme-optimizer/admin/partials/includes/wpto-scripts/08-remove-shortlink.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-theme-optimizer/admin/partials/wpto-admin-display.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-theme-optimizer/admin/partials/includes/wpto-scripts/02-remove-jquery-migrate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-theme-optimizer/admin/partials/includes/wpto-theme-links/01-remove-oembed.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-theme-optimizer/admin/partials/includes/wpto-scripts/01-remove-query-strings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-theme-optimizer/admin/partials/includes/wpto-scripts/04-remove-comments-css.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-theme-optimizer/includes/partials/public-scripts.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please describe screenshot #1 in wp-theme-optimizer/assets to your readme.txt
wp-theme-optimizer/wpto.php 85% from 13 tests
The main PHP file in "WP Theme Optimizer" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-theme-optimizer.php" instead of "wpto.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,551 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 274 | 508 | 1,289 |
CSS | 2 | 5 | 11 | 156 |
JavaScript | 2 | 40 | 134 | 47 |
Markdown | 1 | 19 | 0 | 36 |
JSON | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 26.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 2 | 2.17% |
▷ Public methods | 87 | 94.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin