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.01MB] [CPU: ▼12.91ms] Passed 4 tests
This is a short check of server-side resources used by Simpaisa Wallet (Jazzcash & Easypaisa) Payment Services
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.26 ▲0.86 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.24 ▼18.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.42 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.58 ▼29.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.85 ▼0.35 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simpaisa Wallet (Jazzcash & Easypaisa) Payment Services
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,438 ▼1,297 | 12.41 ▼2.17 | 2.20 ▼0.64 | 42.83 ▼5.89 |
Dashboard /wp-admin | 2,197 ▲9 | 5.88 ▼0.03 | 111.88 ▲0.93 | 58.22 ▲16.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.03 | 37.11 ▼4.11 | 32.41 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.55 ▼0.15 | 647.16 ▼34.43 | 34.24 ▼21.65 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▲0.05 | 98.97 ▼18.99 | 41.15 ▼7.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simpaisa-wallet-payment-services/simpaisa-wallet-payment-services.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in simpaisa-wallet-payment-services/assets to your readme.txt
simpaisa-wallet-payment-services/simpaisa-wallet-payment-services.php Passed 13 tests
"Simpaisa Wallet (Jazzcash & Easypaisa) Payment Services" version 2.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Providing Easy To Integrate Digital Payment Services
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected797 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 117 | 23 | 487 |
CSS | 1 | 35 | 13 | 186 |
Markdown | 1 | 20 | 0 | 77 |
JavaScript | 1 | 4 | 3 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.25MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/simpaisa-logo.png | 26.68KB | 3.43KB | ▼ 87.14% |
assets/jazzcash-logo.png | 96.78KB | 28.60KB | ▼ 70.45% |
assets/jazzcah-logo.png | 90.07KB | 29.93KB | ▼ 66.77% |
assets/easypaisa-logo.png | 45.91KB | 12.80KB | ▼ 72.12% |