90% buddypress-xprofile-validate-with-regex

Code Review | BuddyPress XProfile Validate with RegEx

WordPress plugin BuddyPress XProfile Validate with RegEx scored90%from 54 tests.

About plugin

  • Plugin page: buddypress-xprofi...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: Mar 21, 2014
  • Latest release: Apr 21, 2015
  • Number of updates: 11
  • Update frequency: every 35.9 days
  • Top authors: tometzky (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /2,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by BuddyPress XProfile Validate with RegEx
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.03 ▲2.20
Dashboard /wp-admin3.32 ▲0.0251.94 ▼10.22
Posts /wp-admin/edit.php3.37 ▲0.0255.85 ▲2.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.16 ▼18.69
Media Library /wp-admin/upload.php3.24 ▲0.0236.15 ▼0.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

BuddyPress XProfile Validate with RegEx: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.311.73 ▼0.3341.25 ▼2.12
Dashboard /wp-admin2,198 ▲215.59 ▼0.0289.58 ▼1.2839.62 ▼6.61
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0639.01 ▼1.5040.33 ▲0.85
Add New Post /wp-admin/post-new.php1,526 ▼1123.25 ▲4.72673.32 ▼11.8559.88 ▼6.93
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.08104.33 ▲5.4244.73 ▲0.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
3 plugin tags: buddypress, anti-spam, profile

buddypress-xprofile-validate-with-regex/loader.php 92% from 13 tests

The main PHP file in "BuddyPress XProfile Validate with RegEx" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-xprofile-validate-with-regex.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2214488

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin