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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼12.99ms] Passed 4 tests
This is a short check of server-side resources used by Cat Generator Avatars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.15 ▲2.49 |
Dashboard /wp-admin | 3.32 ▼0.03 | 51.36 ▼18.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.45 ▼8.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.54 ▼23.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.11 ▼0.60 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 151 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Cat Generator Avatars: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.08 | 1.93 ▲0.26 | 43.74 ▲2.85 |
Dashboard /wp-admin | 2,198 ▲24 | 5.56 ▼0.12 | 90.41 ▲0.51 | 41.58 ▼1.16 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.03 | 34.98 ▼5.68 | 38.18 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.37 ▼5.33 | 591.86 ▼39.69 | 58.74 ▲12.06 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▼0.03 | 102.27 ▼11.62 | 42.77 ▼1.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: member, image, bbpress, cat, user...
cat-generator-avatars/cat-generator-avatars.php Passed 13 tests
The main PHP file in "Cat Generator Avatars" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
This plugin integrates the Cat Generator Avatars avatar placeholder service into WordPress (and now BuddyPress).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected236 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 162 | 236 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 36.36% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
145 PNG files occupy 1.41MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bird/tail_6.png | 12.88KB | 6.17KB | ▼ 52.14% |
img/cat/body_11.png | 28.75KB | 12.22KB | ▼ 57.51% |
img/cat/mouth_9.png | 3.29KB | 2.10KB | ▼ 36.28% |
img/cat/mouth_10.png | 2.65KB | 1.59KB | ▼ 40.11% |
img/cat/accessorie_7.png | 7.95KB | 4.09KB | ▼ 48.61% |