89% catchtheweb-barclay-epdq-payment-gateway

Code Review | **RapidDive** BARCLAY ePDQ Payment Gateway

WordPress plugin **RapidDive** BARCLAY ePDQ Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: catchtheweb-barcl...
  • Plugin version: 2.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.9.3
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: Apr 11, 2022
  • Number of updates: 18
  • Update frequency: every 99.8 days
  • Top authors: vinayshah5 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,765 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by **RapidDive** BARCLAY ePDQ Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.81 ▼0.39
Dashboard /wp-admin3.31 ▼0.0445.25 ▼14.60
Posts /wp-admin/edit.php3.36 ▲0.0045.55 ▼1.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.65 ▼15.16
Media Library /wp-admin/upload.php3.23 ▲0.0036.43 ▲2.68

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

**RapidDive** BARCLAY ePDQ Payment Gateway: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.281.85 ▲0.1643.69 ▲3.88
Dashboard /wp-admin2,198 ▲275.61 ▲0.0996.04 ▲7.2740.91 ▼0.97
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0534.97 ▲0.4033.62 ▼6.69
Add New Post /wp-admin/post-new.php1,526 ▼223.61 ▲0.55642.11 ▼31.2551.55 ▼0.24
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0294.68 ▼8.2141.81 ▼1.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, ecommerce, payment gateway, barclay, epdq

catchtheweb-barclay-epdq-payment-gateway/index.php 85% from 13 tests

The entry point to "**RapidDive** BARCLAY ePDQ Payment Gateway" version 2.3.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("catchtheweb-barclay-epdq-payment-gateway.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin1,444 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP61362781,369
Markdown126062
JavaScript13012
YAML1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.50
▷ Minimum class complexity3.00
▷ Maximum class complexity48.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods2080.00%
▷ Protected methods14.00%
▷ Private methods416.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants00.00%
▷ Class constants17100.00%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/barclaycard_logo.png34.52KB16.74KB▼ 51.49%