90% camptix-payfast-gateway

Code Review | CampTix PayFast Payment Gateway

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

About plugin

  • Plugin page: camptix-payfast-g...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Sep 13, 2013
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: Kloon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,092 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by CampTix PayFast Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.11 ▼11.64
Dashboard /wp-admin3.32 ▲0.0143.04 ▼2.74
Posts /wp-admin/edit.php3.37 ▲0.0148.80 ▲4.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.44 ▼5.18
Media Library /wp-admin/upload.php3.24 ▲0.0135.77 ▲2.16

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for CampTix PayFast Payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.314.46 ▲2.7742.03 ▲1.56
Dashboard /wp-admin2,206 ▲244.88 ▲0.01103.28 ▼2.5940.94 ▼5.29
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0640.55 ▲4.8139.25 ▲3.10
Add New Post /wp-admin/post-new.php1,534 ▲1523.28 ▲0.24641.27 ▼45.1553.90 ▼3.13
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.0698.22 ▼5.9844.84 ▲3.32

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
  • 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 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: payfast, camptix

camptix-payfast-gateway/camptix-payfast.php 92% from 13 tests

"CampTix PayFast Payment Gateway" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("camptix-payfast-gateway.php" instead of "camptix-payfast.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin225 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot 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.42
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin