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: ▼141.15ms] Passed 4 tests
An overview of server-side resources used by Whats This
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 44.44 ▲21.26 |
Dashboard /wp-admin | 3.10 ▲0.04 | 44.21 ▲1.73 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 47.26 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 91.78 ▼567.94 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 32.66 ▼0.18 |
WhatsThis Settings /wp-admin/options-general.php?page=wtplugin | 2.99 | 28.51 |
Server storage [IO: ▲2.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wt_options |
Browser metrics Passed 4 tests
Checking browser requirements for Whats This
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲227 | 16.32 ▲0.46 | 12.08 ▲3.95 | 48.23 ▼4.53 |
Dashboard /wp-admin | 2,975 ▲41 | 5.81 ▼0.17 | 132.44 ▼13.74 | 117.27 ▲7.92 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.70 ▲0.01 | 65.97 ▼0.95 | 89.41 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,501 ▼182 | 18.84 ▲0.13 | 379.13 ▼0.28 | 116.19 ▲5.82 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▼0.01 | 153.44 ▼0.13 | 119.85 ▲2.26 |
WhatsThis Settings /wp-admin/options-general.php?page=wtplugin | 1,305 | 2.21 | 67.61 | 74.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- wt_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 27 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wtplugin
- > Notice in wp-content/plugins/whatsthis-tooltip/whatsthis.php+158
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whatsthis-tooltip/whatsthis.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
- Screenshots: These screenshots require images: #1 (/trunk/screenshots/screenshot-1.png), #2 (/trunk/screenshots/screenshot-2.png), #3 (/trunk/screenshots/screenshot-3.png), #4 (/trunk/screenshots/screenshot-4.png), #5 (/trunk/screenshots/screenshot-5.png), #6 (/trunk/screenshots/screenshot-6.png)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== whatsthis-tooltip ===
)
whatsthis-tooltip/whatsthis.php 92% from 13 tests
The principal PHP file in "Whats This" v. 2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("whatsthis-tooltip.php" instead of "whatsthis.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin515 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 32 | 31 | 284 |
PHP | 1 | 43 | 24 | 124 |
JavaScript | 1 | 71 | 41 | 107 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 2.73MB with 1.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-1.png | 20.47KB | 9.20KB | ▼ 55.05% |
screenshots/screenshot-5.png | 617.29KB | 285.24KB | ▼ 53.79% |
screenshots/screenshot-2.png | 104.41KB | 55.35KB | ▼ 46.98% |
screenshots/screenshot-6.png | 658.82KB | 290.32KB | ▼ 55.93% |
screenshots/screenshot-3.png | 819.82KB | 371.46KB | ▼ 54.69% |