Benchmarks
Plugin footprint 65% 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: ▼1.55MB] [CPU: ▼50.82ms] Passed 4 tests
Server-side resources used by ToffeePress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.46 ▼4.52 |
Dashboard /wp-admin | 2.40 ▼0.91 | 6.55 ▼39.62 |
Posts /wp-admin/edit.php | 2.40 ▼0.96 | 7.35 ▼38.38 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.49 | 6.74 ▼95.84 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 5.97 ▼29.43 |
Cleaning /wp-admin/admin.php?page=toffeepress/cleanup | 2.40 | 7.76 |
Settings /wp-admin/admin.php?page=toffeepress/settings | 2.40 | 6.82 |
Compressing /wp-admin/admin.php?page=toffeepress/compress | 2.40 | 6.75 |
Restoring /wp-admin/admin.php?page=toffeepress/restore | 2.40 | 6.19 |
Overview /wp-admin/admin.php?page=toffeepress | 2.40 | 6.56 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
toffeepress_quality |
toffeepress_api_key |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
toffeepress_keep_originals |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ToffeePress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.25 ▼0.95 | 1.64 ▼0.34 | 41.46 ▼2.55 |
Dashboard /wp-admin | 2,229 ▲41 | 5.80 ▼0.01 | 93.79 ▼12.89 | 74.72 ▲37.01 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.01 ▲0.04 | 35.18 ▼0.99 | 32.22 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,691 ▲172 | 22.01 ▼1.31 | 715.07 ▲27.14 | 55.45 ▼0.18 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.13 ▼0.07 | 95.98 ▼5.78 | 68.83 ▲20.32 |
Cleaning /wp-admin/admin.php?page=toffeepress/cleanup | 683 | 1.14 | 6.40 | 13.04 |
Settings /wp-admin/admin.php?page=toffeepress/settings | 1,071 | 2.07 | 24.54 | 31.70 |
Compressing /wp-admin/admin.php?page=toffeepress/compress | 692 | 1.53 | 7.53 | 22.16 |
Restoring /wp-admin/admin.php?page=toffeepress/restore | 687 | 1.14 | 6.80 | 18.47 |
Overview /wp-admin/admin.php?page=toffeepress | 949 | 2.07 | 24.21 | 41.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the toffeepress-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- toffeepress_keep_originals
- widget_recent-comments
- widget_theysaidso_widget
- toffeepress_api_key
- toffeepress_quality
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the toffeepress-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the toffeepress-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the toffeepress-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the toffeepress-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > Notice in wp-content/plugins/toffeepress/toffeepress.php+196
Undefined index: results
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > Notice in wp-content/plugins/toffeepress/toffeepress.php+196
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > Notice in wp-content/plugins/toffeepress/toffeepress.php+196
Undefined index: ping
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=toffeepress
- > Warning in wp-content/plugins/toffeepress/toffeepress.php+158
Division by zero
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: optimise, media, images, compress, compression...
toffeepress/toffeepress.php 92% from 13 tests
The main PHP script in "ToffeePress" version 0.10.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,774 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 4 | 31 | 1,713 |
PHP | 1 | 208 | 63 | 874 |
JavaScript | 1 | 42 | 2 | 187 |
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.39 |
Average class complexity | 125.00 |
▷ Minimum class complexity | 125.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 5.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 92.31% |
▷ Protected methods | 2 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tp-logo-square.png | 56.30KB | 23.10KB | ▼ 58.98% |
images/twistphp.png | 2.23KB | 1.11KB | ▼ 50.15% |
images/tp-logo.png | 32.57KB | 13.29KB | ▼ 59.18% |
images/menu-icon.png | 0.87KB | 0.70KB | ▼ 19.78% |