89% bp-xprofile-fields-custom-css-classes

Code Review | Buddypress Xprofile Fields Custom Css Classes

WordPress plugin Buddypress Xprofile Fields Custom Css Classes scored89%from 54 tests.

About plugin

  • Plugin page: bp-xprofile-field...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2017
  • Latest release: Apr 24, 2017
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: codepixlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,271 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Buddypress Xprofile Fields Custom Css Classes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0145.90 ▼1.13
Dashboard /wp-admin3.58 ▲0.0152.11 ▲1.93
Posts /wp-admin/edit.php3.69 ▲0.0152.00 ▼4.73
Add New Post /wp-admin/post-new.php6.16 ▲0.0198.16 ▼11.92
Media Library /wp-admin/upload.php3.50 ▲0.0139.96 ▲2.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Buddypress Xprofile Fields Custom Css Classes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.16 ▼0.191.85 ▼0.0944.15 ▲1.04
Dashboard /wp-admin2,195 ▲155.65 ▼0.0487.36 ▲2.5643.11 ▲0.30
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0135.84 ▼7.3033.98 ▼3.46
Add New Post /wp-admin/post-new.php1,549 ▲2323.13 ▲5.58655.91 ▲36.1071.87 ▲15.74
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.01100.12 ▼7.4940.99 ▼4.94

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

bp-xprofile-fields-custom-css-classes/xprofile-fields-custom-css-classes.php 85% from 13 tests

Analyzing the main PHP file in "Buddypress Xprofile Fields Custom Css Classes" version 1.0
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: Please rename the main PHP file in this plugin to the plugin slug ("bp-xprofile-fields-custom-css-classes.php" instead of "xprofile-fields-custom-css-classes.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
Everything looks great! No dangerous files found in this plugin65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2143165

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin