Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/add-local-avatar/avatars.php+1410
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.35MB] [CPU: ▼197.09ms] Passed 4 tests
Analyzing server-side resources used by Add Local Avatar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼0.55 | 6.83 ▼28.55 |
Dashboard /wp-admin | 2.30 ▼0.75 | 6.56 ▼50.72 |
Posts /wp-admin/edit.php | 2.30 ▼0.80 | 6.92 ▼46.34 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.13 | 7.50 ▼662.75 |
Media Library /wp-admin/upload.php | 2.30 ▼0.70 | 6.78 ▼28.09 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options |
---|
plugin_avatars |
Browser metrics Passed 4 tests
Checking browser requirements for Add Local Avatar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲281 | 16.82 ▲1.22 | 16.34 ▲7.80 | 46.51 ▲1.43 |
Dashboard /wp-admin | 2,966 ▲35 | 6.09 ▲0.14 | 140.22 ▼60.58 | 135.77 ▲13.66 |
Posts /wp-admin/edit.php | 2,770 ▲31 | 2.71 ▼0.00 | 62.85 ▼19.18 | 86.06 ▼14.54 |
Add New Post /wp-admin/post-new.php | 1,597 ▼18 | 18.75 ▼2.28 | 396.67 ▲103.24 | 103.98 ▼3.74 |
Media Library /wp-admin/upload.php | 1,762 ▼45 | 5.03 ▲0.01 | 141.20 ▼8.98 | 137.33 ▲19.93 |
Avatars /wp-admin/avatars.php | 26 | 0.90 | 0.06 | 11.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/add-local-avatar/avatars.php+1410
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 1 option in the database
- plugin_avatars
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-local-avatar/avatars.php:52
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/avatars.php
- > Network (severe)
wp-admin/avatars.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (An example of the main avatars administration page. Manage users global and local avatars etc.), #2 (The avatars options configuration section of the main avatars administration page.), #3 (The WordPress profile page shows the new floating section showing the current avatar. Click manage to change.), #4 (Avatar Management popup. Allowing upload of local avatars, with crop option, and setting of a Twitter ID.), #5 (Sample avatars: local, global, retro, gravatar, blank, wavatar, identicon, monsters, twitter - the lot!), #6 (Example of the optional simple sidebar widget allowing users to manage their own avatar. Available from the plugin's homepage.)
add-local-avatar/avatars.php 92% from 13 tests
The primary PHP file in "Add Local Avatar" version 12.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-local-avatar.php" instead of "avatars.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,064 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 800 | 1,325 | 1,710 |
PHP | 2 | 245 | 163 | 1,305 |
CSS | 2 | 8 | 0 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 90.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 6.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.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
No PNG images were found in this plugin