84% bolo-avatar

Code Review | Bolo Avatar

WordPress plugin Bolo Avatar scored 84% from 54 tests.

About plugin

  • Plugin page: bolo-avatar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2013
  • Latest release: Mar 19, 2013
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bolo1988 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,044 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼13.41ms] Passed 4 tests

Server-side resources used by Bolo Avatar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0730.66 ▼16.30
Dashboard /wp-admin3.11 ▼0.1946.63 ▼5.36
Posts /wp-admin/edit.php3.25 ▼0.1140.87 ▼10.35
Add New Post /wp-admin/post-new.php5.44 ▼0.4580.09 ▼18.87
Media Library /wp-admin/upload.php3.18 ▼0.0530.36 ▼8.12

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Bolo Avatar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1114.48 ▲1.311.80 ▼0.3742.86 ▼0.27
Dashboard /wp-admin2,197 ▼125.85 ▼0.04107.20 ▼7.1640.04 ▼2.39
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0139.80 ▲3.5237.05 ▼0.49
Add New Post /wp-admin/post-new.php1,520 ▼1323.30 ▲0.13693.19 ▼5.9957.28 ▲0.41
Media Library /wp-admin/upload.php1,385 ▼64.31 ▲0.1697.42 ▼8.7441.57 ▼3.54

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bolo-avatar/bolo-avatar.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

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
1 plugin tags: avatar

bolo-avatar/bolo-avatar.php Passed 13 tests

The main PHP file in "Bolo Avatar" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Allow users upload a avatar

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
Success! There were no dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17972

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin