89% allpay-payment-gateway

Code Review | Allpay Payment Gateway

WordPress plugin Allpay Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: allpay-payment-ga...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2023
  • Latest release: Aug 10, 2023
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: allpay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Allpay Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.41 ▼1.98
Dashboard /wp-admin3.31 ▼0.0446.48 ▼21.00
Posts /wp-admin/edit.php3.36 ▲0.0046.54 ▼3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.96 ▼7.47
Media Library /wp-admin/upload.php3.23 ▲0.0032.14 ▼7.62

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Allpay Payment Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.69 ▲0.341.93 ▲0.1145.10 ▲2.09
Dashboard /wp-admin2,195 ▲215.62 ▼0.1190.38 ▼5.6438.72 ▼7.24
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0340.13 ▲5.7237.15 ▲0.04
Add New Post /wp-admin/post-new.php1,529 ▲322.82 ▼0.17601.49 ▼51.5446.73 ▼6.78
Media Library /wp-admin/upload.php1,400 ▼04.16 ▲0.07100.13 ▼8.8142.36 ▼4.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: payment provider, israel

allpay-payment-gateway/allpay-gateway.php 85% from 13 tests

Analyzing the main PHP file in "Allpay Payment Gateway" version 1.0.2
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("allpay-payment-gateway.php" instead of "allpay-gateway.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin384 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34143201
PO File26266183

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin