90% camptix-payment-payupaisa

Code Review | CampTix PayU Money Gateway

WordPress plugin CampTix PayU Money Gateway scored90%from 54 tests.

About plugin

  • Plugin page: camptix-payment-p...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0.0
  • WordPress version: 6.3.1
  • First release: Jan 14, 2014
  • Latest release: Nov 4, 2014
  • Number of updates: 13
  • Update frequency: every 22.7 days
  • Top authors: kdclabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,703 total downloads

Benchmarks

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
Installer ran successfully

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

A check of server-side resources used by CampTix PayU Money Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.13 ▲1.86
Dashboard /wp-admin3.31 ▲0.0148.62 ▼0.09
Posts /wp-admin/edit.php3.36 ▲0.0147.30 ▼0.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.21 ▼19.83
Media Library /wp-admin/upload.php3.23 ▲0.0133.98 ▼0.12

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CampTix PayU Money Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▲0.271.70 ▲0.1046.35 ▲4.05
Dashboard /wp-admin2,195 ▲215.61 ▼0.0197.78 ▲10.7342.83 ▲2.31
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.1335.87 ▼2.8230.45 ▼3.93
Add New Post /wp-admin/post-new.php1,526 ▼923.22 ▼1.58578.73 ▼23.2864.62 ▼37.10
Media Library /wp-admin/upload.php1,400 ▼34.31 ▲0.1795.73 ▼5.7344.80 ▼2.96

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Good news, no errors were detected

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
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: payu india, payumoney, camptix, payupaisa, payu

camptix-payment-payupaisa/camptix-payupaisa.php 92% from 13 tests

This is the main PHP file of "CampTix PayU Money Gateway" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("camptix-payment-payupaisa.php" instead of "camptix-payupaisa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin215 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25037215

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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 files were detected