88% bridgerpay

Code Review | BridgerPay

WordPress plugin BridgerPay scored 88% from 54 tests.

About plugin

  • Plugin page: bridgerpay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 28, 2020
  • Latest release: Mar 12, 2020
  • Number of updates: 21
  • Update frequency: every 17.6 days
  • Top authors: bridgerpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 246 total downloads


Plugin footprint Passed 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.11MB] [CPU: ▼141.93ms] Passed 4 tests

An overview of server-side resources used by BridgerPay
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2034.40 ▲12.75
Dashboard /wp-admin3.15 ▲0.1039.43 ▼8.88
Posts /wp-admin/edit.php3.27 ▲0.1642.66 ▼0.92
Add New Post /wp-admin/post-new.php5.51 ▲0.0890.04 ▼567.35
Media Library /wp-admin/upload.php3.10 ▲0.1035.22 ▲9.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for BridgerPay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲24016.23 ▲0.3610.82 ▲2.6049.46 ▲2.87
Dashboard /wp-admin2,991 ▲575.85 ▼0.22135.64 ▼12.08108.30 ▼10.61
Posts /wp-admin/edit.php2,763 ▲242.70 ▲0.0263.46 ▼3.5693.31 ▲4.86
Add New Post /wp-admin/post-new.php1,700 ▲11918.78 ▼1.68367.07 ▼29.32116.77 ▲0.74
Media Library /wp-admin/upload.php1,831 ▲245.01 ▲0.02146.64 ▼12.72186.56 ▲66.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bridgerpay/public/partials/bridgerpay-public-display.php
    • > /wp-content/plugins/bridgerpay/admin/partials/bridgerpay-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bridgerpay/admin/class-bridgerpay-admin.php:287

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === bridgerpay === )
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

bridgerpay/bridgerpay.php Passed 13 tests

The main file in "BridgerPay" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin440 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.38
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.51
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
3 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.PNG25.23KB12.32KB▼ 51.19%
assets/screenshot-3.PNG128.13KB54.29KB▼ 57.63%
assets/screenshot-2.PNG39.91KB17.32KB▼ 56.59%