Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼12.93ms] Passed 4 tests
A check of server-side resources used by WP Head Optimizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.73 | 14.53 ▼28.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.05 ▼5.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.08 ▼5.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.34 ▼12.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.67 ▼3.21 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wpho_activated_on |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Head Optimizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.20 ▼0.18 | 1.78 ▼0.34 | 44.94 ▲1.91 |
Dashboard /wp-admin | 2,202 ▲22 | 5.71 ▲0.03 | 95.24 ▲1.85 | 100.18 ▲56.96 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.02 ▲0.04 | 36.27 ▼2.00 | 34.33 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,560 ▲15 | 23.22 ▲1.91 | 732.39 ▲11.94 | 69.07 ▲8.16 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.40 ▲0.18 | 101.51 ▼11.36 | 66.59 ▲20.05 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Admin Screen of the plugin at where you can play with the plugin) image not found
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-head-optimizer ===
)
wp-head-optimizer/wp-head-optimizer.php 92% from 13 tests
The main PHP script in "WP Head Optimizer" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected349 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 135 | 455 | 327 |
JavaScript | 1 | 5 | 0 | 16 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
snapshot-1.png | 82.98KB | 34.57KB | ▼ 58.34% |
admin/css/wpho_icon.png | 1.45KB | 0.87KB | ▼ 40.07% |