89% payment-for-gccpay

Code Review | GCCPay Payment for WooCommerce

WordPress plugin GCCPay Payment for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: payment-for-gccpay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Apr 21, 2023
  • Latest release: Apr 21, 2023
  • Number of updates: 3
  • Update frequency: every 22.7 days
  • Top authors: alfall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /77 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.69ms] Passed 4 tests

Server-side resources used by GCCPay Payment for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.66 ▼5.19
Dashboard /wp-admin3.41 ▲0.1157.08 ▲5.39
Posts /wp-admin/edit.php3.46 ▲0.1148.96 ▲0.89
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.57 ▼22.64
Media Library /wp-admin/upload.php3.34 ▲0.1139.12 ▲4.19

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

GCCPay Payment for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10314.48 ▲0.072.44 ▲0.5139.29 ▼4.10
Dashboard /wp-admin2,214 ▲266.06 ▲1.15103.69 ▼12.0938.68 ▼7.68
Posts /wp-admin/edit.php2,103 ▲112.04 ▼0.0138.74 ▲2.4839.44 ▲5.56
Add New Post /wp-admin/post-new.php1,370 ▼14917.23 ▼5.87597.20 ▼76.4836.61 ▼22.56
Media Library /wp-admin/upload.php1,396 ▲84.19 ▲0.01102.03 ▼8.5843.29 ▼5.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt might help

payment-for-gccpay/woo-gccpay.php 85% from 13 tests

The principal PHP file in "GCCPay Payment for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("payment-for-gccpay.php" instead of "woo-gccpay.php")

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
Success! There were no dangerous files found in this plugin588 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP172112580
Markdown1208

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin