83% pbs-gateway

Code Review | www.paymentbillsservice.com Payment Gateway For WooCommerce

WordPress plugin www.paymentbillsservice.com Payment Gateway For WooCommercescored83%from 54 tests.

About plugin

  • Plugin page: pbs-gateway
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: May 1, 2015
  • Number of updates: 7
  • Update frequency: every 19.1 days
  • Top authors: omar4hasan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,104 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by www.paymentbillsservice.com Payment Gateway For WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.03 ▼1.44
Dashboard /wp-admin3.31 ▲0.0044.43 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0050.61 ▲3.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.72 ▼8.44
Media Library /wp-admin/upload.php3.23 ▲0.0035.91 ▲0.90

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by www.paymentbillsservice.com Payment Gateway For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.66 ▼0.1142.44 ▼0.73
Dashboard /wp-admin2,195 ▲175.55 ▼0.1982.71 ▼35.0938.77 ▼5.02
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0042.22 ▲7.1839.05 ▲6.31
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▼0.04673.60 ▲38.5860.92 ▲1.31
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.08104.78 ▼0.8547.35 ▲0.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 add_action() in wp-content/plugins/pbs-gateway/payment-bills-service.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Please add images for these screenshots: #1 (Activate Plugin.), #2 (Go to WooCommerce Settings.), #3 (Select PBS tab.), #4 (Select PBS option.), #5 (Enable PBS option from this page.), #6 (Enter the details.), #7 (Set gateway mode.), #8 (Sample screenshot from checkout page)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === www.paymentbillsservice.com Payment Gateway For WooCommerce=== )
The official readme.txt might help

pbs-gateway/payment-bills-service.php 92% from 13 tests

"www.paymentbillsservice.com Payment Gateway For WooCommerce" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pbs-gateway.php" instead of "payment-bills-service.php")

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
No dangerous file extensions were detected285 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14858285

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png49.78KB28.07KB▼ 43.61%
screenshot-3.png48.41KB27.67KB▼ 42.84%
screenshot-1.png56.05KB31.25KB▼ 44.25%
screenshot-4.png56.36KB24.04KB▼ 57.34%