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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.53ms] Passed 4 tests
Server-side resources used by WordPress Initial Avatars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.29 ▲4.51 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.68 ▼2.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.14 ▲2.77 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.02 ▲10.54 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.32 ▲1.55 |
Avatar settings /wp-admin/options-general.php?page=wp-initials-avatar/wordpress-initials-avatar.php | 3.26 | 33.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Initial Avatars
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲34 | 13.49 ▲0.19 | 1.75 ▲0.01 | 45.59 ▼3.05 |
Dashboard /wp-admin | 2,226 ▲20 | 5.04 ▲0.15 | 102.61 ▲7.20 | 41.01 ▲4.21 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.29 ▲0.28 | 40.95 ▲8.24 | 35.57 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.17 ▼0.17 | 704.04 ▼16.12 | 36.28 ▼16.58 |
Media Library /wp-admin/upload.php | 1,408 ▲26 | 4.49 ▲0.26 | 95.80 ▼7.26 | 42.39 ▼4.49 |
Avatar settings /wp-admin/options-general.php?page=wp-initials-avatar/wordpress-initials-avatar.php | 1,141 | 2.23 | 53.34 | 28.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-initials-avatar/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-initials-avatar/wordpress-initials-avatar.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were no plugin tags found
wp-initials-avatar/wordpress-initials-avatar.php 92% from 13 tests
The main PHP file in "WordPress Initial Avatars" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-initials-avatar.php" instead of "wordpress-initials-avatar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin116 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 21 | 113 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin