90% thecartpress-quickpay-payment-gateway

Code Review | TheCartPress - Quickpay Payment Gateway

WordPress plugin TheCartPress - Quickpay Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: thecartpress-quic...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 12, 2013
  • Latest release: Aug 6, 2015
  • Number of updates: 7
  • Update frequency: every 86.0 days
  • Top authors: PerfectSolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 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.18MB] [CPU: ▼20.77ms] Passed 4 tests

An overview of server-side resources used by TheCartPress - Quickpay Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.78 ▼7.53
Dashboard /wp-admin3.20 ▼0.1428.02 ▼36.75
Posts /wp-admin/edit.php3.27 ▼0.0936.85 ▼10.77
Add New Post /wp-admin/post-new.php5.44 ▼0.4570.22 ▼28.03
Media Library /wp-admin/upload.php3.21 ▼0.0233.29 ▼4.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for TheCartPress - Quickpay Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,459 ▼1,30212.89 ▼1.751.94 ▲0.0139.82 ▼4.81
Dashboard /wp-admin852 ▼1,3131.38 ▼4.2514.48 ▼85.5123.74 ▼22.34
Posts /wp-admin/edit.php863 ▼1,2371.14 ▼0.867.77 ▼30.6322.03 ▼16.52
Add New Post /wp-admin/post-new.php589 ▼9571.73 ▼21.8922.90 ▼650.810.20 ▼49.64
Media Library /wp-admin/upload.php748 ▼6521.73 ▼2.5020.50 ▼98.9119.99 ▼25.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • recovery_mode_email_last_sent
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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 shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: tcp, thecartpress quickpay, payment gateway, quickpay, payment...

thecartpress-quickpay-payment-gateway/quickpay.php 92% from 13 tests

The primary PHP file in "TheCartPress - Quickpay Payment Gateway" version 2.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("thecartpress-quickpay-payment-gateway.php" instead of "quickpay.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
Everything looks great! No dangerous files found in this plugin273 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24437273

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.33
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1047.62%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin