89% camptix-kdcpay-gateway

Code Review | CampTix KDCpay Payments

WordPress plugin CampTix KDCpay Payments scored89%from 54 tests.

About plugin

  • Plugin page: camptix-kdcpay-ga...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2015
  • Latest release: Aug 29, 2017
  • Number of updates: 43
  • Update frequency: every 22.1 days
  • Top authors: kdclabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by CampTix KDCpay Payments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.73 ▼1.37
Dashboard /wp-admin3.31 ▲0.0151.75 ▲4.27
Posts /wp-admin/edit.php3.36 ▲0.0041.79 ▼4.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.73 ▼3.73
Media Library /wp-admin/upload.php3.23 ▲0.0034.48 ▲3.10

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CampTix KDCpay Payments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.23 ▼1.352.22 ▲0.2850.07 ▲3.11
Dashboard /wp-admin2,209 ▲185.85 ▲0.97109.10 ▲4.2442.76 ▼4.05
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0034.59 ▼0.1632.66 ▼0.90
Add New Post /wp-admin/post-new.php1,533 ▼923.44 ▲4.97662.13 ▲4.0155.97 ▲4.60
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.01103.50 ▲4.2545.16 ▲0.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: kdcpay, camptix

camptix-kdcpay-gateway/camptix-kdcpay.php 85% from 13 tests

The main PHP file in "CampTix KDCpay Payments" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("camptix-kdcpay-gateway.php" instead of "camptix-kdcpay.php")

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
Good job! No executable or dangerous file extensions detected331 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26072331

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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