Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.18ms] Passed 4 tests
A check of server-side resources used by WPAvatar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.52 ▲1.64 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.11 ▼11.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.06 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.85 ▼9.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.44 ▼1.24 |
Avatar /wp-admin/options-general.php?page=wpavatar-settings | 3.21 | 27.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
wpavatar_enable_cravatar |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WPAvatar: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.02 | 1.91 ▲0.33 | 45.40 ▲5.83 |
Dashboard /wp-admin | 2,199 ▲22 | 5.49 ▼0.11 | 79.13 ▼8.62 | 38.53 ▼3.84 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.01 | 33.40 ▼1.98 | 35.51 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.24 ▲4.90 | 673.79 ▲33.85 | 61.67 ▼7.35 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.01 | 109.33 ▼10.84 | 48.08 ▼0.23 |
Avatar /wp-admin/options-general.php?page=wpavatar-settings | 831 | 2.16 | 26.95 | 27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- wpavatar_enable_cravatar
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpavatar/includes/cravatar.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: cravatar, wpavatar, avatar, gravatar, wp avatar
wpavatar/wpavatar.php Passed 13 tests
The entry point to "WPAvatar" version 1.0 is a PHP file that has certain tags in its header comment area
75 characters long description:
Replace Gravatar with Cravatar, a perfect replacement of Gravatar in China.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin212 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 30 | 30 | 116 |
PHP | 2 | 23 | 40 | 96 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin