89% bp-delegated-xprofile

Code Review | BP Delegated XProfile

WordPress plugin BP Delegated XProfile scored 89% from 54 tests.

About plugin

  • Plugin page: bp-delegated-xpro...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: (?:WordPress|WP)?\s*([0-9.]+)(?:\s*\/\s*(?:BuddyPress|BP)?\s*([0-9.]+))?$/i', $line, $m );-4.8
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Aug 24, 2017
  • Number of updates: 3
  • Update frequency: every 16.0 days
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 862 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼4.29ms] Passed 4 tests

Analyzing server-side resources used by BP Delegated XProfile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.56 ▲1.63
Dashboard /wp-admin3.31 ▲0.0046.89 ▼3.17
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▲0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.55 ▼13.02
Media Library /wp-admin/upload.php3.23 ▲0.0034.13 ▼1.60

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BP Delegated XProfile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.271.82 ▲0.1442.83 ▼1.32
Dashboard /wp-admin2,209 ▲205.06 ▲0.14106.82 ▼5.4340.83 ▼4.70
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0434.22 ▼4.6133.74 ▼0.88
Add New Post /wp-admin/post-new.php1,534 ▼223.30 ▲0.02668.98 ▲3.9456.13 ▼3.69
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0396.83 ▼3.0842.55 ▼2.46

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

bp-delegated-xprofile/bp-delegated-xprofile.php 85% from 13 tests

The principal PHP file in "BP Delegated XProfile" v. 0.1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "(?:WordPress|WP)?\s*([0-9.]+)(?:\s*\/\s*(?:BuddyPress|BP)?\s*([0-9.]+))?$/i', $line, $m );")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin235 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP340216231
Markdown1304

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods19100.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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