79% bp-user-information

Code Review | BP User Information

WordPress plugin BP User Information scored79%from 54 tests.

About plugin

  • Plugin page: bp-user-information
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 31, 2017
  • Latest release: Feb 3, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: beatrizlima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /870 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.15ms] Passed 4 tests

An overview of server-side resources used by BP User Information
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.49 ▲1.12
Dashboard /wp-admin3.34 ▲0.0347.24 ▼0.12
Posts /wp-admin/edit.php3.39 ▲0.0344.57 ▼0.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.97 ▼10.03
Media Library /wp-admin/upload.php3.26 ▲0.0332.59 ▼1.72
User Information /wp-admin/options-general.php?page=user_information3.2030.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for BP User Information
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.26 ▼1.101.64 ▼0.1143.41 ▼1.75
Dashboard /wp-admin2,219 ▲316.02 ▲1.12112.81 ▲5.5245.19 ▼0.07
Posts /wp-admin/edit.php2,102 ▲131.97 ▼0.0137.38 ▼0.4838.25 ▲3.76
Add New Post /wp-admin/post-new.php1,375 ▼15320.48 ▼2.79549.83 ▼147.2238.94 ▼15.18
Media Library /wp-admin/upload.php1,398 ▲104.20 ▼0.0193.21 ▼16.7443.34 ▼6.60
User Information /wp-admin/options-general.php?page=user_information8242.0225.4429.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=user_information
    • > Notice in wp-content/plugins/bp-user-information/bp-user-information.php+132
    Undefined variable: size

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-user-information/bp-user-information.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: user, users, members, information

bp-user-information/bp-user-information.php Passed 13 tests

The main PHP script in "BP User Information" version 1.0 is automatically included on every request by WordPress
47 characters long description:
Plugin to show user information in members page

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 plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11316140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
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

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