84% tbz-camptix-paystack

Code Review | CampTix Paystack Payment Gateway

WordPress plugin CampTix Paystack Payment Gateway scored84%from 54 tests.

About plugin

  • Plugin page: tbz-camptix-paystack
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Nov 2, 2017
  • Latest release: Nov 2, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,038 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.13MB] [CPU: ▼4.58ms] Passed 4 tests

Analyzing server-side resources used by CampTix Paystack Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0339.63 ▼7.15
Dashboard /wp-admin3.31 ▲0.0152.30 ▲4.63
Posts /wp-admin/edit.php3.36 ▼0.4852.25 ▲4.11
Add New Post /wp-admin/post-new.php5.89 ▲0.00105.01 ▼17.93
Media Library /wp-admin/upload.php3.23 ▲0.0032.55 ▲2.65

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

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

Browser metrics Passed 4 tests

CampTix Paystack Payment Gateway: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.151.70 ▼0.0642.38 ▼2.95
Dashboard /wp-admin2,206 ▲185.79 ▲0.91105.82 ▼7.9637.64 ▼4.61
Posts /wp-admin/edit.php2,092 ▲32.17 ▲0.1742.73 ▲3.2635.38 ▲3.41
Add New Post /wp-admin/post-new.php1,533 ▼023.28 ▲4.80680.59 ▲69.9352.50 ▼7.59
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0594.25 ▼1.7342.88 ▲3.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CampTix_Payment_Method' not found in wp-content/plugins/tbz-camptix-paystack/includes/class-paystack.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: tubiz plugins, mastercard, nigeria, interswitch, verve...

tbz-camptix-paystack/tbz-camptix-paystack.php Passed 13 tests

The main file in "CampTix Paystack Payment Gateway" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Paystack payment gateway for CampTix

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected244 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP212610244

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.78
▷ 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%
Functions2
▷ Named functions2100.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