89% honorific-buddypress-members-name

Code Review | Honorific Buddypress Usernames

WordPress plugin Honorific Buddypress Usernames scored89%from 54 tests.

About plugin

  • Plugin page: honorific-buddypr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Dec 13, 2016
  • Latest release: Dec 13, 2016
  • Number of updates: 11
  • Update frequency: every 16.3 days
  • Top authors: hklatiyan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,122 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.89ms] Passed 4 tests

Server-side resources used by Honorific Buddypress Usernames
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.13 ▲10.51
Dashboard /wp-admin3.31 ▼0.0444.23 ▼13.13
Posts /wp-admin/edit.php3.36 ▲0.0043.67 ▼0.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.45 ▼8.88
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▲2.85

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Honorific Buddypress Usernames
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.111.77 ▲0.1440.21 ▲3.47
Dashboard /wp-admin2,206 ▲214.88 ▲0.0298.42 ▼9.6037.39 ▼5.79
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0538.98 ▲4.1433.48 ▼0.98
Add New Post /wp-admin/post-new.php1,535 ▲723.44 ▲0.30672.71 ▲20.4664.68 ▲19.52
Media Library /wp-admin/upload.php1,382 ▼34.21 ▼0.02100.90 ▲7.5449.73 ▲6.69

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 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === honorific-buddypress-members-name === )
You can look at the official readme.txt

honorific-buddypress-members-name/honorific_buddypress_username.php 92% from 13 tests

This is the main PHP file of "Honorific Buddypress Usernames" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("honorific-buddypress-members-name.php" instead of "honorific_buddypress_username.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2252247

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin