Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▲4.03ms] Passed 4 tests
Analyzing server-side resources used by SardexPay for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 50.10 ▲12.40 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.68 ▼2.29 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.63 ▲4.93 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 98.71 ▲8.66 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.06 ▲4.82 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
_wc_gateway_sardex_merchant_info |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SardexPay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.27 ▼1.46 | 4.23 ▲2.33 | 38.77 ▼2.42 |
Dashboard /wp-admin | 2,246 ▲54 | 4.87 ▼0.03 | 109.60 ▼0.07 | 41.36 ▼2.44 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.04 ▲0.03 | 40.79 ▲4.54 | 37.97 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,435 ▼98 | 22.93 ▼0.45 | 493.41 ▼183.50 | 31.67 ▼35.54 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.19 ▲0.06 | 97.79 ▼10.85 | 39.58 ▼8.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: bisoo, sardex, e-commerce, ecommerce, payment gateway...
sardex-for-woocommerce/sardex-for-woocommerce.php 85% from 13 tests
"SardexPay for WooCommerce" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.3")
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
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
Success! There were no dangerous files found in this plugin2,015 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 480 | 451 | 1,598 |
CSS | 1 | 41 | 9 | 277 |
SVG | 8 | 0 | 1 | 102 |
JavaScript | 2 | 8 | 26 | 38 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 33 | 62.26% |
▷ Public methods | 39 | 73.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 26.42% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.35MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/sardexpay-cashback-logo-big.png | 15.79KB | 6.11KB | ▼ 61.33% |
assets/img/sardex-logo-big.png | 34.59KB | 10.55KB | ▼ 69.51% |
assets/img/app-cashback.png | 281.98KB | 67.62KB | ▼ 76.02% |
assets/img/sardex-email-header.png | 3.36KB | 2.73KB | ▼ 18.60% |
assets/img/sardex-bisoo.png | 8.54KB | 4.10KB | ▼ 52.03% |