Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.81MB] [CPU: ▼25.11ms] Passed 4 tests
Server-side resources used by AvatarPlus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 48.31 ▲6.69 |
Dashboard /wp-admin | 3.20 ▼0.11 | 56.45 ▲5.86 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 24.95 ▼26.27 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 25.46 ▼71.70 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 27.97 ▼8.31 |
AvatarPlus /wp-admin/options-general.php?page=avatarplus | 3.12 | 23.40 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
avatarplus_options |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for AvatarPlus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,892 ▼869 | 12.77 ▼1.96 | 2.51 ▲0.91 | 43.29 ▼0.47 |
Dashboard /wp-admin | 1,279 ▼898 | 1.48 ▼4.14 | 13.94 ▼80.46 | 36.17 ▼10.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▲0.01 | 38.80 ▲0.35 | 43.16 ▲10.95 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.20 ▼0.10 | 689.52 ▼5.40 | 40.86 ▼17.68 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.09 ▼0.08 | 104.90 ▼4.94 | 46.58 ▼0.61 |
AvatarPlus /wp-admin/options-general.php?page=avatarplus | 853 | 2.01 | 27.49 | 26.82 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=avatarplus
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function AvatarPlus\\add_action() in wp-content/plugins/avatarplus/avatarplus.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: comments, avatar
avatarplus/avatarplus.php Passed 13 tests
The main file in "AvatarPlus" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Replacing the standard avatar in comments with a Google+, Facebook or Twitter avatar if a user enter a profile url
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
No dangerous file extensions were detected865 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 417 | 556 | 744 |
PO File | 1 | 18 | 40 | 55 |
Markdown | 1 | 20 | 0 | 38 |
HTML | 8 | 0 | 0 | 28 |
PHP code Passed 2 tests
Analyzing 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 | 23.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 9 | 23.68% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 1 | 2.63% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin