93% buddypress-real-names

Code Review | BuddyPress Real Names

WordPress plugin BuddyPress Real Names scored 93% from 54 tests.

About plugin

  • Plugin page: buddypress-real-n...
  • Plugin version: 0.3.5
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Nov 15, 2009
  • Latest release: Feb 13, 2013
  • Number of updates: 27
  • Update frequency: every 44.1 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 8,946 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼152.12ms] Passed 4 tests

A check of server-side resources used by BuddyPress Real Names
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.57 ▲14.90
Dashboard /wp-admin3.06 ▲0.0158.07 ▼0.18
Posts /wp-admin/edit.php3.12 ▲0.0155.40 ▲7.69
Add New Post /wp-admin/post-new.php5.42 ▼0.01100.44 ▼611.57
Media Library /wp-admin/upload.php3.01 ▲0.0138.25 ▼4.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Real Names
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.84 ▼0.0012.86 ▲2.3554.33 ▼1.51
Dashboard /wp-admin2,973 ▲425.91 ▼0.06156.18 ▼2.85132.80 ▲8.80
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0172.15 ▲3.7392.47 ▼6.51
Add New Post /wp-admin/post-new.php1,683 ▼018.43 ▼0.36406.00 ▲1.44120.15 ▲2.96
Media Library /wp-admin/upload.php1,807 ▼04.96 ▼0.13162.23 ▼3.03132.22 ▼0.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-real-names/loader.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/buddypress-real-names/buddypress-real-names.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

buddypress-real-names/loader.php 85% from 13 tests

This is the main PHP file of "BuddyPress Real Names" version 0.3.5, 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:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-real-names.php" instead of "loader.php")

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
Everything looks great! No dangerous files found in this plugin738 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4294161596
PO File13232111
CSS12017
JavaScript1181314

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity26.00
▷ Minimum class complexity23.00
▷ Maximum class complexity29.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin