83% debitsuccess

Code Review | Debitsuccess

WordPress plugin Debitsuccess scored 83% from 54 tests.

About plugin

  • Plugin page: debitsuccess
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.3
  • WordPress version: 6.3.1
  • First release: Oct 17, 2015
  • Latest release: Oct 20, 2015
  • Number of updates: 17
  • Update frequency: every 0.3 days
  • Top authors: devdebitsuccess (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by Debitsuccess
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1936.67 ▼2.13
Dashboard /wp-admin3.49 ▲0.1946.69 ▼2.30
Posts /wp-admin/edit.php3.60 ▲0.2549.92 ▼1.64
Add New Post /wp-admin/post-new.php6.07 ▲0.1897.71 ▼1.14
Media Library /wp-admin/upload.php3.41 ▲0.1834.84 ▼2.36

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Debitsuccess
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼0.901.74 ▼0.1640.78 ▼4.60
Dashboard /wp-admin2,209 ▲214.83 ▼0.06115.92 ▲0.7044.85 ▲4.82
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0138.20 ▼2.2330.44 ▼7.76
Add New Post /wp-admin/post-new.php1,539 ▲423.25 ▼0.04691.90 ▲4.8957.47 ▼4.95
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.13101.43 ▼22.2845.57 ▼4.16

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debitsuccess/gateway-debitsuccess.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 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
9 plugin tags: payment gateway with secure online payment gateway, woocommerce, payment gateway, pay with credit card debit card internet banking, gateway for woocommerce...

debitsuccess/gateway-debitsuccess.php 77% from 13 tests

Analyzing the main PHP file in "Debitsuccess" version 2.8
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("debitsuccess.php" instead of "gateway-debitsuccess.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,093 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11941761,057
JavaScript223536

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity141.00
▷ Minimum class complexity141.00
▷ Maximum class complexity141.00
Average method complexity6.38
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cards.png0.78KB0.58KB▼ 25.66%
images/direct-debit-logo.png13.94KB8.39KB▼ 39.81%
images/ds_logo2.png1.95KB1.51KB▼ 22.28%