84% bp-xprofile-rich-text-field

Code Review | Buddypress xProfile Rich Text Field

WordPress plugin Buddypress xProfile Rich Text Field scored84%from 54 tests.

About plugin

  • Plugin page: bp-xprofile-rich-...
  • Plugin version: 0.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Mar 11, 2016
  • Number of updates: 11
  • Update frequency: every 49.2 days
  • Top authors: needle (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /7,185 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Buddypress xProfile Rich Text Field
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.48 ▲0.03
Dashboard /wp-admin3.31 ▲0.0050.45 ▼0.55
Posts /wp-admin/edit.php3.36 ▲0.0045.93 ▼6.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.04 ▼22.98
Media Library /wp-admin/upload.php3.23 ▲0.0036.48 ▼3.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Buddypress xProfile Rich Text Field
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.741.77 ▼0.0139.91 ▼5.32
Dashboard /wp-admin2,203 ▲155.83 ▲0.78105.92 ▼0.0044.37 ▲0.90
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0037.00 ▼5.2140.15 ▲4.56
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▼0.33633.32 ▼66.0056.77 ▲2.20
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0597.00 ▼12.5044.40 ▼1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-xprofile-rich-text-field/buddypress-xprofile-rich-text-field.php:588
    • > PHP Fatal error
      Uncaught Error: Class 'BP_XProfile_Field_Type' not found in wp-content/plugins/bp-xprofile-rich-text-field/buddypress-xprofile-rich-text-field-class.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tinymce, xprofile, field, buddypress, editor

bp-xprofile-rich-text-field/buddypress-xprofile-rich-text-field.php 92% from 13 tests

Analyzing the main PHP file in "Buddypress xProfile Rich Text Field" version 0.2.5
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-xprofile-rich-text-field.php" instead of "buddypress-xprofile-rich-text-field.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin301 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2211250263
CSS13020
JavaScript120718

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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