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.05MB] [CPU: ▼9.39ms] Passed 4 tests
Analyzing server-side resources used by Local Gravatars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 70.38 ▲28.50 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.79 ▼4.20 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 43.33 ▼7.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.17 ▼24.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.15 ▼0.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 2 files (11.41KB) outside of "wp-content/plugins/local-gravatars/" and "wp-content/uploads/"
- (new file) wp-content/gravatars/d7a973c7dab26985da5f961be7b74480
- (new file) wp-content/gravatars/dda8de772f53e64b26129d7f632ad1a3
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Local Gravatars
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.35 ▼0.22 | 1.94 ▲0.26 | 40.89 ▼3.27 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▲0.06 | 88.12 ▼15.24 | 38.26 ▼4.24 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.02 ▲0.07 | 39.02 ▲3.40 | 33.00 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 21.08 ▼2.04 | 684.45 ▲58.77 | 45.48 ▼12.34 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.01 | 105.43 ▲1.82 | 47.88 ▲3.62 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Aristath\\LocalGravatars\\add_filter() in wp-content/plugins/local-gravatars/local-gravatars.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found
local-gravatars/local-gravatars.php 92% from 13 tests
The primary PHP file in "Local Gravatars" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "5.3")
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
No dangerous file extensions were detected120 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 185 | 120 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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