Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼0.09ms] Passed 4 tests
A check of server-side resources used by Whippet
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 47.71 ▲9.47 |
Dashboard /wp-admin | 3.82 ▲0.51 | 61.48 ▲1.07 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 48.81 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 83.12 ▼11.42 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 41.80 ▲8.62 |
Whippet /wp-admin/tools.php?page=whippet | 3.62 | 38.22 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_whippet_enabled |
wp_whippet_disabled |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
whippet_db_version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
whippet_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Whippet
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,219 ▲458 | 14.03 ▼0.33 | 2.42 ▲0.74 | 42.44 ▼0.33 |
Dashboard /wp-admin | 2,201 ▲27 | 5.63 ▲0.04 | 83.81 ▼2.58 | 36.66 ▼2.26 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.00 | 34.26 ▼2.80 | 36.71 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.31 ▲5.19 | 669.15 ▲59.43 | 57.28 ▼8.89 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▼0.07 | 101.58 ▲6.47 | 41.34 ▲0.18 |
Whippet /wp-admin/tools.php?page=whippet | 1,148 | 2.00 | 23.22 | 31.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_whippet_enabled
- wp_whippet_disabled
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- whippet_options
- widget_recent-comments
- whippet_db_version
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/whippet/whippet.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
whippet/whippet.php Passed 13 tests
The entry point to "Whippet" version 1.0.1 is a PHP file that has certain tags in its header comment area
35 characters long description:
Speed up your Website using Whippet
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
There were no executable files found in this plugin2,427 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 316 | 857 | 1,815 |
CSS | 2 | 54 | 5 | 331 |
JavaScript | 2 | 29 | 35 | 228 |
Markdown | 1 | 8 | 0 | 44 |
JSON | 1 | 0 | 0 | 8 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 75.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 24 | 30.77% |
▷ Public methods | 70 | 89.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.26% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.40MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 78.78KB | 81.29KB | 0.00% |
assets/screenshot-1.png | 174.27KB | 181.33KB | 0.00% |
assets/screenshot-2.png | 99.45KB | 103.44KB | 0.00% |
assets/screenshot-4.png | 54.50KB | 57.50KB | 0.00% |