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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.21ms] Passed 4 tests
Server-side resources used by WP Optimize It
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.60 ▲2.32 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.68 ▲2.77 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 54.08 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.65 ▼1.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.73 ▼3.73 |
Optimize it /wp-admin/tools.php?page=wpl-settings | 3.23 | 33.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Optimize It
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲69 | 13.31 ▼0.99 | 1.77 ▲0.09 | 39.91 ▼4.67 |
Dashboard /wp-admin | 2,225 ▲25 | 5.90 ▲0.91 | 111.92 ▲0.20 | 40.16 ▼2.82 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▼0.00 | 39.13 ▲3.31 | 37.16 ▲4.52 |
Add New Post /wp-admin/post-new.php | 1,543 ▼7 | 23.31 ▼0.09 | 672.09 ▼68.15 | 51.65 ▼3.32 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.19 ▲0.02 | 95.23 ▼14.86 | 41.59 ▼6.13 |
Optimize it /wp-admin/tools.php?page=wpl-settings | 830 | 2.02 | 26.47 | 37.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-optimize-it/lib/display/tab-content/general.php
- > /wp-content/plugins/wp-optimize-it/lib/display/tab-content/http.php
- > /wp-content/plugins/wp-optimize-it/lib/display/tab-content/cache.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-optimize-it/lib/wpl.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-optimize-it/lib/class/metabox.class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-optimize-it/wp_optimize_it.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-optimize-it/lib/display/wpl-view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-optimize-it/lib/class/cache.class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: gtmetrix optimization, optimization, disable plugin on pages, pagespeed optimization
wp-optimize-it/wp_optimize_it.php 85% from 13 tests
The main PHP file in "WP Optimize It" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-optimize-it.php" instead of "wp_optimize_it.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected364 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 69 | 16 | 207 |
CSS | 1 | 28 | 2 | 129 |
JavaScript | 1 | 9 | 1 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 images were found in this plugin