Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.23ms] Passed 4 tests
A check of server-side resources used by Annotation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 42.92 ▲22.25 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.38 ▼4.18 |
Posts /wp-admin/edit.php | 3.11 ▼0.00 | 40.16 ▼8.00 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 84.98 ▼565.23 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.95 ▼3.49 |
Server storage [IO: ▲4.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 888 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Annotation: 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 / | 3,815 ▲178 | 16.25 ▲0.65 | 11.81 ▲2.73 | 45.33 ▼2.50 |
Dashboard /wp-admin | 2,973 ▲36 | 6.11 ▲0.17 | 142.23 ▼9.71 | 104.02 ▼14.62 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 63.66 ▼8.07 | 95.14 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,615 ▲115 | 21.41 ▲2.64 | 285.61 ▼77.43 | 106.60 ▼10.65 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.00 ▲0.01 | 168.53 ▲1.24 | 133.35 ▲12.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot of the plugin with text anchor), #2 (Screenshot of the plugin with image anchor), #3 (Screenshot of the plugin with le-frog and cupertino themes)
annotation/Annotation.php 85% from 13 tests
The main PHP file in "Annotation" ver. 0.5.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("annotation.php" instead of "Annotation.php")
- Domain Path: The domain path folder does not exist ("/languages/")
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
Success! There were no dangerous files found in this plugin50,363 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 154 | 2,455 | 3,942 | 50,246 |
PHP | 1 | 19 | 22 | 117 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 33.33% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
708 PNG files occupy 1.64MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/1.9.2/trontastic/images/ui-icons_b8ec79_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
themes/1.10.3/dot-luv/images/ui-bg_diagonals-thick_15_0b3e6f_40x40.png | 0.41KB | 0.15KB | ▼ 62.97% |
themes/1.10.3/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png | 0.41KB | 0.15KB | ▼ 62.35% |
themes/1.10.3/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png | 0.31KB | 0.16KB | ▼ 49.37% |
themes/1.9.2/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png | 1.83KB | 1.14KB | ▼ 37.89% |