Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.33ms] Passed 4 tests
A check of server-side resources used by Sudan Payment Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.89 ▼4.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.55 ▼3.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.58 ▼4.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.36 ▼9.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.31 ▼1.11 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sudan Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.23 ▼1.14 | 1.84 ▲0.01 | 37.85 ▼8.62 |
Dashboard /wp-admin | 2,206 ▲21 | 5.83 ▼0.06 | 94.32 ▼4.81 | 38.23 ▼4.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 36.21 ▼8.99 | 33.13 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,536 ▲12 | 23.73 ▲0.49 | 625.40 ▲15.12 | 51.18 ▲1.06 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.24 ▲0.07 | 101.83 ▲1.32 | 44.44 ▲0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 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 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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-sudan-payment-gateway/includes/wc-sudan-payment-gateway.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: payment, woocommerce, bank of khartoum, mbok, sudan
wc-sudan-payment-gateway/wc-sudan-payment-gateway.php 77% from 13 tests
The principal PHP file in "Sudan Payment Gateway for WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 512 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin921 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 105 | 84 | 528 |
CSS | 2 | 34 | 2 | 203 |
PO File | 1 | 48 | 57 | 136 |
JavaScript | 2 | 8 | 8 | 54 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There were not PNG files found in your plugin