83% briqpay-signup-addon

Code Review | Briqpay B2B Registration Form

WordPress plugin Briqpay B2B Registration Form scored83%from 54 tests.

About plugin

  • Plugin page: briqpay-signup-addon
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: May 12, 2022
  • Latest release: Dec 14, 2022
  • Number of updates: 11
  • Update frequency: every 19.6 days
  • Top authors: briqpaymattias (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,512 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.19ms] Passed 4 tests

This is a short check of server-side resources used by Briqpay B2B Registration Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.24 ▼6.03
Dashboard /wp-admin3.38 ▲0.0851.79 ▼1.36
Posts /wp-admin/edit.php3.50 ▲0.1455.43 ▲1.67
Add New Post /wp-admin/post-new.php5.97 ▲0.08101.79 ▼0.71
Media Library /wp-admin/upload.php3.30 ▲0.0837.06 ▼0.65
Briqpay Signup Plugin Settings /wp-admin/options-general.php?page=briqpay-signup-settings-page3.2735.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Briqpay B2B Registration Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.66 ▼0.924.72 ▲2.9040.65 ▼4.46
Dashboard /wp-admin2,213 ▲284.84 ▼0.11105.50 ▼2.8037.92 ▼7.41
Posts /wp-admin/edit.php2,093 ▲72.04 ▼0.0139.11 ▲1.6034.31 ▼0.18
Add New Post /wp-admin/post-new.php1,539 ▲2523.00 ▲5.56588.47 ▼54.9859.51 ▲7.90
Media Library /wp-admin/upload.php1,395 ▲44.15 ▼0.0797.11 ▼6.1745.75 ▲1.75
Briqpay Signup Plugin Settings /wp-admin/options-general.php?page=briqpay-signup-settings-page8192.0424.7326.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/briqpay-signup-addon/class-briqpay-api-request.php:41

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 Passed 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
6 plugin tags: briqpay, useraccount, user, registration, account...

briqpay-signup-addon/briqpay-wordpress-signup.php 77% from 13 tests

The main PHP file in "Briqpay B2B Registration Form" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.2")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.9" instead of "4.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("briqpay-signup-addon.php" instead of "briqpay-wordpress-signup.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
No dangerous file extensions were detected448 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP333167369
Markdown117076
JSON1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.67
▷ Minimum class complexity5.00
▷ Maximum class complexity16.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected