90% bd-payments-camptix

Code Review | CampTix Bangldeshi Payments

WordPress plugin CampTix Bangldeshi Payments scored90%from 54 tests.

About plugin

  • Plugin page: bd-payments-camptix
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: Mar 14, 2020
  • Number of updates: 6
  • Update frequency: every 50.8 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,131 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by CampTix Bangldeshi Payments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.54 ▲1.23
Dashboard /wp-admin3.32 ▲0.0142.84 ▼5.23
Posts /wp-admin/edit.php3.37 ▲0.0144.58 ▼6.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.92 ▼0.67
Media Library /wp-admin/upload.php3.24 ▲0.0133.62 ▼4.60

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for CampTix Bangldeshi Payments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.77 ▼0.611.84 ▲0.3140.50 ▼4.95
Dashboard /wp-admin2,203 ▲215.83 ▼0.0599.34 ▼4.1037.03 ▼8.54
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0240.20 ▼1.6234.32 ▼6.67
Add New Post /wp-admin/post-new.php1,537 ▲2323.28 ▲5.83639.26 ▼42.4960.05 ▲4.72
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0398.33 ▼8.4840.04 ▼6.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 issues were found

Optimizations

Plugin configuration Passed 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
4 plugin tags: camptix payment, ticketing, camptix, payment gateways

bd-payments-camptix/bd-payments-camptix.php Passed 13 tests

The main PHP script in "CampTix Bangldeshi Payments" version 1.2 is automatically included on every request by WordPress
40 characters long description:
Bangladeshi payment gateways for CampTix

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
No dangerous file extensions were detected374 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3108206374

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.33
▷ Minimum class complexity2.00
▷ Maximum class complexity44.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin