Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.75ms] Passed 4 tests
A check of server-side resources used by WooCommerce JazzCash Gateway Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.28 ▲4.47 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.17 ▼1.05 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.97 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 97.18 ▼1,169.15 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 23.01 ▼8.03 |
Server storage [IO: ▲2.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce JazzCash Gateway Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.88 ▲0.08 | 6.44 ▲0.41 | 2.07 ▼0.68 |
Dashboard /wp-admin | 2,892 ▲38 | 6.11 ▼0.12 | 122.90 ▼12.14 | 156.57 ▼5.45 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.23 ▼0.01 | 62.86 ▲0.93 | 140.08 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,661 ▼49 | 15.76 ▼5.26 | 456.93 ▲22.82 | 154.95 ▼1.11 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.47 ▼0.07 | 146.43 ▲3.29 | 180.72 ▼7.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 27× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient7.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/getfile2client.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient14.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/client.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient13.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient3b.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient4.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient11.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient8.php
- > /wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/client2.php
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Creating default object from empty value in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/client.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/class.soap_val.php:17
- > PHP Fatal error
Uncaught Error: Call to a member function BrowseNodeSearchRequest() on null in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/samples/wsdlclient2.php:35
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/class.soap_fault.php:14
- > PHP Fatal error
require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/class.wsdl.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/jazzcash-woocommerce-gateway/woocommerce-jazzcash.php:3
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/class.soap_parser.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/class.soap_transport_http.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/jazzcash-woocommerce-gateway/wsdl/includes/nusoap-0.9.5/lib/class.soap_server.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: woocommerce, jazzcash
jazzcash-woocommerce-gateway/woocommerce-jazzcash-gateway.php 92% from 13 tests
The principal PHP file in "WooCommerce JazzCash Gateway Plugin" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("jazzcash-woocommerce-gateway.php" instead of "woocommerce-jazzcash-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,396 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,106 | 5,669 | 13,250 |
CSS | 1 | 6 | 11 | 73 |
HTML | 1 | 0 | 4 | 58 |
JavaScript | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 77.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 335 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 331 | 98.81% |
▷ Protected methods | 4 | 1.19% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/mw.png | 1.58KB | 1.48KB | ▼ 6.49% |
assets/jazzcash-logo-200x200.png | 22.11KB | 7.19KB | ▼ 67.46% |
assets/jazz-cash.png | 102.48KB | 32.51KB | ▼ 68.28% |
assets/cd.png | 2.32KB | 1.61KB | ▼ 30.56% |
assets/sh.png | 1.65KB | 1.43KB | ▼ 13.52% |