89% borica-payments

Code Review | BORICA Payments by BORICA AD

WordPress plugin BORICA Payments by BORICA AD scored 89% from 54 tests.

About plugin

  • Plugin page: borica-payments
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Jul 18, 2023
  • Number of updates: 14
  • Update frequency: every 10.9 days
  • Top authors: borica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 519 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by BORICA Payments by BORICA AD
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0133.97 ▼5.37
Dashboard /wp-admin3.31 ▲0.0043.69 ▼2.28
Posts /wp-admin/edit.php3.36 ▲0.0050.57 ▲3.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.74 ▲12.06
Media Library /wp-admin/upload.php3.23 ▲0.0039.17 ▲7.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for BORICA Payments by BORICA AD
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.22 ▼1.091.73 ▼0.0939.78 ▼0.07
Dashboard /wp-admin2,209 ▲65.89 ▲0.08108.31 ▲14.4441.67 ▲6.02
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0341.94 ▲5.3237.50 ▲2.88
Add New Post /wp-admin/post-new.php1,514 ▼1917.82 ▼5.44685.87 ▼25.1352.23 ▼12.00
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.03107.13 ▲0.1249.21 ▲3.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

borica-payments/borica-woo-payment-gateway.php 77% from 13 tests

Analyzing the main PHP file in "BORICA Payments by BORICA AD" version 1.1.0
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("borica-payments.php" instead of "borica-woo-payment-gateway.php")
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,804 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP132597511,605
PO File176104199

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity17.62
▷ Minimum class complexity1.00
▷ Maximum class complexity93.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods76
▷ Static methods33.95%
▷ Public methods6382.89%
▷ Protected methods45.26%
▷ Private methods911.84%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/public/images/brand-grid.png42.58KB14.33KB▼ 66.34%