Benchmarks
Plugin footprint 82% 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.29MB] [CPU: ▼2.61ms] Passed 4 tests
This is a short check of server-side resources used by Leira Letter Avatar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 42.50 ▼4.82 |
Dashboard /wp-admin | 3.67 ▲0.37 | 55.98 ▲3.31 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 54.59 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 89.76 ▼9.71 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 42.90 ▲5.57 |
Letter Avatar /wp-admin/options-general.php?page=leira_letter_avatar | 3.52 | 42.93 |
Server storage [IO: ▲34.18MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Try to limit filesystem usage to 25MB (currently using 34.18MB)
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Leira Letter Avatar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.22 ▼0.13 | 1.76 ▼0.26 | 43.63 ▼0.65 |
Dashboard /wp-admin | 2,201 ▲21 | 5.62 ▲0.01 | 96.47 ▼4.17 | 43.18 ▼0.16 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▲0.03 | 32.45 ▼3.06 | 38.71 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.23 ▲0.24 | 706.29 ▲71.02 | 52.51 ▲0.17 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▲0.10 | 99.87 ▼7.48 | 47.15 ▲3.36 |
Letter Avatar /wp-admin/options-general.php?page=leira_letter_avatar | 1,293 | 2.43 | 60.00 | 34.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/leira-letter-avatar/public/partials/leira-letter-avatar-public-display.php
- > /wp-content/plugins/leira-letter-avatar/admin/partials/leira-letter-avatar-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: image, frontend, admin, letter, avatar...
leira-letter-avatar/leira-letter-avatar.php Passed 13 tests
Analyzing the main PHP file in "Leira Letter Avatar" version 1.3.7
61 characters long description:
Enables custom avatars for users base on its initial letters.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,429 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 318 | 1,180 | 1,211 |
PO File | 1 | 39 | 46 | 117 |
Sass | 2 | 15 | 1 | 54 |
JavaScript | 2 | 8 | 68 | 33 |
CSS | 2 | 2 | 12 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 3 | 4.41% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 2 | 2.94% |
▷ Private methods | 5 | 7.35% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There are no PNG files in this plugin