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.09MB] [CPU: ▲119.62ms] Passed 4 tests
Analyzing server-side resources used by Libravatar Replace
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 153.03 ▲112.94 |
Dashboard /wp-admin | 3.41 ▲0.06 | 472.70 ▲409.77 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 181.33 ▲127.46 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 219.40 ▲118.47 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 152.99 ▲119.60 |
Libravatar /wp-admin/options-general.php?page=libravatar-replace | 3.30 | 150.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Libravatar Replace
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲22 | 14.41 ▲0.05 | 1.90 ▲0.34 | 40.64 ▼1.43 |
Dashboard /wp-admin | 2,187 ▲10 | 5.66 ▼0.00 | 90.83 ▼2.09 | 63.95 ▲25.52 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.04 | 35.64 ▼0.28 | 34.99 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,683 ▲147 | 22.11 ▲3.86 | 713.69 ▲69.28 | 56.72 ▼15.17 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.12 ▼0.08 | 98.69 ▼5.66 | 75.16 ▲26.98 |
Libravatar /wp-admin/options-general.php?page=libravatar-replace | 813 | 2.12 | 24.18 | 25.68 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/libravatar-replace/libravatar-replace.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Services_Libravatar' not found in wp-content/plugins/libravatar-replace/classes/ServicesLibravatarExt.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'ServicesLibravatarExt' not found in wp-content/plugins/libravatar-replace/classes/ServicesLibravatarCached.class.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/libravatar-replace/views/admin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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: avatar, email, buddypress, libravatar, picture...
libravatar-replace/libravatar-replace.php Passed 13 tests
Analyzing the main PHP file in "Libravatar Replace" version 3.3.0
47 characters long description:
Libravatar support for WordPress and BuddyPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected631 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 143 | 469 | 541 |
Markdown | 1 | 40 | 0 | 62 |
PO File | 1 | 6 | 6 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 21 | 58.33% |
▷ Protected methods | 11 | 30.56% |
▷ Private methods | 4 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin