90% brijpay-link

Code Review | Brijpay Link

WordPress plugin Brijpay Link scored90%from 54 tests.

About plugin

  • Plugin page: brijpay-link
  • Plugin version: 2.4.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2020
  • Latest release: Nov 28, 2023
  • Number of updates: 56
  • Update frequency: every 20.9 days
  • Top authors: brijpaysupport (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,819 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 gracefully, with no errors

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

This is a short check of server-side resources used by Brijpay Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.66 ▼2.10
Dashboard /wp-admin3.31 ▼0.0447.13 ▼13.62
Posts /wp-admin/edit.php3.36 ▲0.0047.99 ▼15.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.91 ▲9.08
Media Library /wp-admin/upload.php3.24 ▲0.0035.18 ▲2.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Brijpay Link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5414.22 ▲0.081.70 ▼0.0037.60 ▼5.14
Dashboard /wp-admin2,189 ▲115.59 ▼0.1097.37 ▼14.7142.94 ▼3.12
Posts /wp-admin/edit.php2,097 ▼132.03 ▲0.0939.64 ▼11.2536.19 ▼9.58
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▼0.14569.51 ▼44.6745.89 ▼9.81
Media Library /wp-admin/upload.php1,403 ▲64.22 ▲0.0396.49 ▼4.3740.94 ▼0.24

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: users, products, credit card, gateway, payment...

brijpay-link/brijpay-link.php Passed 13 tests

The entry point to "Brijpay Link" version 2.4.6 is a PHP file that has certain tags in its header comment area
85 characters long description:
WooCommerce Inventory Sync with Mindbody with several tokenized payment integrations.

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
There were no executable files found in this plugin2,333 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP166214612,188
Markdown2880145

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.57
▷ Minimum class complexity2.00
▷ Maximum class complexity59.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods89
▷ Static methods77.87%
▷ Public methods5056.18%
▷ Protected methods3134.83%
▷ Private methods88.99%
Functions11
▷ Named functions763.64%
▷ Anonymous functions436.36%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/brijpay-logo.png7.54KB3.06KB▼ 59.42%
assets/images/brijpay-pay-logo.png5.49KB2.96KB▼ 46.08%