Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/fl3r-randavatar/randavatar.php+42
Methods with the same name as their class will not be constructors in a future version of PHP; randavatarx has a deprecated constructor
Server metrics [RAM: ▼1.60MB] [CPU: ▼63.42ms] Passed 4 tests
This is a short check of server-side resources used by FL3R Randavatar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.39 ▼1.08 | 6.81 ▼40.43 |
Dashboard /wp-admin | 2.41 ▼0.90 | 7.19 ▼54.12 |
Posts /wp-admin/edit.php | 2.41 ▼0.95 | 6.69 ▼55.74 |
Add New Post /wp-admin/post-new.php | 2.41 ▼3.48 | 6.99 ▼103.38 |
Media Library /wp-admin/upload.php | 2.41 ▼0.82 | 6.49 ▼35.03 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by FL3R Randavatar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,786 ▲25 | 14.28 ▼0.08 | 1.85 ▲0.18 | 41.89 ▲0.29 |
Dashboard /wp-admin | 2,196 ▲16 | 5.60 ▼0.06 | 91.37 ▲3.57 | 44.61 ▲2.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.03 | 35.69 ▼3.13 | 37.43 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.22 ▲0.04 | 652.40 ▼47.76 | 59.39 ▲1.74 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.01 | 97.95 ▼16.69 | 42.50 ▼9.83 |
FL3R Randavatar /wp-admin/randavatar.php | 26 | 0.42 | 0.13 | 13.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/fl3r-randavatar/randavatar.php+42
Methods with the same name as their class will not be constructors in a future version of PHP; randavatarx has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/fl3r-randavatar/randavatar.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/randavatar.php
- > Network (severe)
wp-admin/randavatar.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (FL3R Randavatar in comments.), #2 (FL3R Randavatar widget.), #3 (Users list with generated avatars.), #4 (Some generated avatars.)
fl3r-randavatar/randavatar.php 85% from 13 tests
The main file in "FL3R Randavatar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fl3r-randavatar.php" instead of "randavatar.php")
- Description: The description should be shorter than 140 characters (currently 301 characters long)
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,009 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 100 | 136 | 917 |
JavaScript | 2 | 291 | 512 | 645 |
CSS | 1 | 2 | 6 | 235 |
PO File | 1 | 65 | 65 | 212 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
106 PNG files occupy 1.64MB with 1.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
avatar/parts/mouth_13.png | 14.66KB | 0.29KB | ▼ 97.99% |
avatar/parts/arms_1.png | 14.37KB | 0.11KB | ▼ 99.27% |
avatar/parts/extra_1.png | 0.29KB | 0.11KB | ▼ 63.76% |
avatar/parts/mouth_7.png | 14.71KB | 0.33KB | ▼ 97.77% |
avatar/parts/eyes_16.png | 15.45KB | 0.71KB | ▼ 95.39% |