89% infobvandevliet-nl

Code Review | SeerBit Payment Gateway plugin for WooCommerce

WordPress plugin SeerBit Payment Gateway plugin for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: infobvandevliet-nl
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: -6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2020
  • Latest release: Dec 23, 2022
  • Number of updates: 39
  • Update frequency: every 26.6 days
  • Top authors: devseerbit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,539 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼15.99MB] [CPU: ▼3,316,547.42ms] Passed 4 tests

This is a short check of server-side resources used by SeerBit Payment Gateway plugin for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0138.98 ▼7.16
Dashboard /wp-admin3.36 ▼64.0052.50 ▼13,266,167.30
Posts /wp-admin/edit.php3.41 ▲0.0160.21 ▲8.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0191.54 ▼15.54
Media Library /wp-admin/upload.php3.29 ▲0.0137.64 ▲0.34

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SeerBit Payment Gateway plugin for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.16 ▼0.481.74 ▼0.1341.87 ▼6.30
Dashboard /wp-admin2,191 ▲115.55 ▼0.0687.90 ▼9.7438.42 ▼7.04
Posts /wp-admin/edit.php2,105 ▲52.02 ▲0.0240.69 ▲0.8440.99 ▲2.79
Add New Post /wp-admin/post-new.php1,528 ▲223.19 ▲0.31705.22 ▲45.3358.78 ▲10.22
Media Library /wp-admin/upload.php1,402 ▲24.18 ▼0.0196.90 ▼7.9442.69 ▼1.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% 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
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

infobvandevliet-nl/seerbit-payment.php 85% from 13 tests

The main PHP file in "SeerBit Payment Gateway plugin for WooCommerce" ver. 1.3.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("infobvandevliet-nl.php" instead of "seerbit-payment.php")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "")

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
No dangerous file extensions were detected733 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5119168579
CSS21366108
JavaScript181645
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.67
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-128x128.png2.87KB1.66KB▼ 42.06%
assets/img/seerbit.png65.66KB36.48KB▼ 44.43%