Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.33ms] Passed 4 tests
A check of server-side resources used by Letter Avatars
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 147.23 ▲109.57 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.52 ▲1.77 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.13 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.35 ▼10.07 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.73 ▲1.10 |
Letter Avatars /wp-admin/options-general.php?page=sgi-letter-avatars | 3.23 | 33.52 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Letter Avatars
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.33 ▼0.03 | 1.74 ▼0.08 | 42.77 ▼2.49 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.01 | 83.79 ▼7.10 | 37.19 ▼4.30 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.02 | 34.42 ▼1.03 | 36.76 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.42 ▲0.44 | 662.95 ▼17.73 | 59.93 ▲0.44 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▼0.03 | 112.28 ▲4.35 | 46.38 ▼0.67 |
Letter Avatars /wp-admin/options-general.php?page=sgi-letter-avatars | 1,230 | 2.46 | 51.36 | 34.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: gravatar, letter, buddypress, wp-user-avatar, buddypress-avatar...
letter-avatars/letter-avatars.php 92% from 13 tests
"Letter Avatars" version 3.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0.0" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,472 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 519 | 432 | 1,361 |
CSS | 3 | 9 | 0 | 45 |
JavaScript | 2 | 36 | 1 | 45 |
JSON | 1 | 0 | 0 | 11 |
LESS | 1 | 5 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 3 | 4.92% |
▷ Public methods | 60 | 98.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.64% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.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