90% gateway-camptix-paynow-payment

Code Review | CampTix Paynow Payment Gateway

WordPress plugin CampTix Paynow Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: gateway-camptix-p...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 2, 2018
  • Latest release: Oct 26, 2018
  • Number of updates: 15
  • Update frequency: every 2.5 days
  • Top authors: rodgersnigel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by CampTix Paynow Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.38 ▼3.17
Dashboard /wp-admin3.31 ▼0.0443.96 ▼15.90
Posts /wp-admin/edit.php3.36 ▲0.0043.35 ▼4.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.75 ▼16.33
Media Library /wp-admin/upload.php3.23 ▲0.0037.07 ▲2.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CampTix Paynow Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.071.47 ▼0.2639.11 ▲1.71
Dashboard /wp-admin2,195 ▲185.57 ▲0.0488.91 ▼1.0247.30 ▲3.59
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0034.73 ▼4.2335.33 ▲0.41
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.37588.30 ▼111.8054.71 ▼7.73
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.05100.22 ▼2.5444.12 ▼1.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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)
Even though no errors were found, 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
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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: paynow, camptix

gateway-camptix-paynow-payment/camptix-paynow.php 92% from 13 tests

The main file in "CampTix Paynow Payment Gateway" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gateway-camptix-paynow-payment.php" instead of "camptix-paynow.php")

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 detected218 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21339218

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin