Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests
Analyzing server-side resources used by Avatars Meta Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.36 ▲0.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.33 ▼7.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.63 ▼1.97 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.57 ▼10.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.01 ▲4.69 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Avatars Meta Box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.53 ▼0.77 | 2.05 ▲0.29 | 44.81 ▼0.47 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼1.20 | 116.00 ▲10.12 | 46.51 ▼2.77 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.02 | 36.22 ▼4.98 | 33.55 ▲2.65 |
Add New Post /wp-admin/post-new.php | 6,484 ▲4,942 | 20.65 ▲2.12 | 921.26 ▲259.47 | 58.83 ▲3.54 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.24 ▲0.00 | 102.95 ▲1.83 | 44.82 ▼0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avatars-meta-box/admin/class-meta-box-avatars.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/avatars-meta-box/avatars-meta-box.php:93
- > PHP Fatal error
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Edit post screen with author avatar box in normal position.), #2 (Edit post screeen with author avatar box in side position.), #3 (Author avatar box.)
avatars-meta-box/avatars-meta-box.php Passed 13 tests
Analyzing the main PHP file in "Avatars Meta Box" version 1.0.0
117 characters long description:
Select post author by clicking on their avatar on the edit post screen instead of the default drop-down select field.
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 plugin447 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 4 | 82 | 0 | 308 |
PHP | 2 | 62 | 188 | 110 |
CSS | 1 | 5 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 9 | 64.29% |
▷ Protected methods | 1 | 7.14% |
▷ Private methods | 4 | 28.57% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 37.82KB | 15.75KB | ▼ 58.34% |
screenshot-2.png | 142.39KB | 56.17KB | ▼ 60.55% |
screenshot-1.png | 158.85KB | 63.12KB | ▼ 60.26% |