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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 36.67 ▼2.13 |
Dashboard /wp-admin | 3.49 ▲0.19 | 46.69 ▼2.30 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.92 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 97.71 ▼1.14 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼0.90 | 1.74 ▼0.16 | 40.78 ▼4.60 |
Dashboard /wp-admin | 2,209 ▲21 | 4.83 ▼0.06 | 115.92 ▲0.70 | 44.85 ▲4.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.01 | 38.20 ▼2.23 | 30.44 ▼7.76 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.25 ▼0.04 | 691.90 ▲4.89 | 57.47 ▼4.95 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.13 | 101.43 ▼22.28 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 194 | 176 | 1,057 |
JavaScript | 2 | 23 | 5 | 36 |
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 code | 0.42 |
Average class complexity | 141.00 |
▷ Minimum class complexity | 141.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 6.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cards.png | 0.78KB | 0.58KB | ▼ 25.66% |
images/direct-debit-logo.png | 13.94KB | 8.39KB | ▼ 39.81% |
images/ds_logo2.png | 1.95KB | 1.51KB | ▼ 22.28% |