Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.27ms] Passed 4 tests
Server-side resources used by Wallet System for WooCommerce - Digital Wallet, Cashback Rewards, Recharge User Wallets, View Transaction History
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.36 ▼4.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.14 ▼5.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.12 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.81 ▼12.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 28.58 ▼2.78 |
Server storage [IO: ▲28.53MB] [DB: ▲0.07MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- The filesystem usage should be lower than 25MB (currently using 28.53MB)
Filesystem: 640 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Wallet System for WooCommerce - Digital Wallet, Cashback Rewards, Recharge User Wallets, View Transaction History
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.25 ▼0.09 | 1.78 ▼0.17 | 41.11 ▼5.68 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.03 | 91.11 ▼12.30 | 38.01 ▼5.77 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.94 ▼0.09 | 38.96 ▲1.50 | 37.17 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.58 ▲0.56 | 668.18 ▼82.46 | 52.52 ▼5.05 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.15 ▼0.07 | 99.93 ▼9.15 | 41.81 ▼3.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wallet-system-for-woocommerce/common/partials/wallet-system-for-woocommerce-common-display.php
- > /wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/tests/quickdump.php
- 183× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/tests/Sabberworm/CSS/CSSList/DocumentTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Positioner/TableCell.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/src/FrameReflower/Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/FrameDecorator/TableRowGroup.php:20
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Positioner/Absolute.php:16
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Type/hmtx.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/CSSNamespace.php:8
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/FrameReflower/Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/tests/Sabberworm/CSS/RuleSet/LenientParsingTest.php:8
- > PHP Notice
Undefined variable: rootDir in wp-content/plugins/wallet-system-for-woocommerce/package/lib/dompdf/lib/fonts/dompdf_font_family_cache.dist.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Requires php: Invalid version format
wallet-system-for-woocommerce/wallet-system-for-woocommerce.php 85% from 13 tests
"Wallet System for WooCommerce - Digital Wallet, Cashback Rewards, Recharge User Wallets, View Transaction History" version 2.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 405 characters long)
- Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "7.3.5 or Higher")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected131,536 lines of code in 395 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 263 | 10,940 | 18,759 | 74,753 |
JavaScript | 28 | 11,459 | 23,143 | 48,436 |
CSS | 63 | 911 | 244 | 5,042 |
PO File | 1 | 637 | 1,113 | 1,395 |
Markdown | 9 | 341 | 0 | 1,030 |
JSON | 9 | 0 | 0 | 580 |
XML | 6 | 3 | 2 | 194 |
YAML | 3 | 12 | 2 | 64 |
SVG | 12 | 0 | 0 | 25 |
HTML | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 45.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 797.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 281 | |
▷ Abstract classes | 16 | 5.69% |
▷ Concrete classes | 265 | 94.31% |
▷ Final classes | 0 | 0.00% |
Methods | 3,504 | |
▷ Static methods | 179 | 5.11% |
▷ Public methods | 3,014 | 86.02% |
▷ Protected methods | 356 | 10.16% |
▷ Private methods | 134 | 3.82% |
Functions | 55 | |
▷ Named functions | 30 | 54.55% |
▷ Anonymous functions | 25 | 45.45% |
Constants | 277 | |
▷ Global constants | 5 | 1.81% |
▷ Class constants | 272 | 98.19% |
▷ Public constants | 272 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/lib/datatables/media/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
public/images/copy.png | 0.72KB | 0.65KB | ▼ 9.97% |
public/images/wht-g.png | 1.01KB | 0.65KB | ▼ 35.17% |
package/lib/datatables/media/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/image/go-pro.png | 35.34KB | 14.65KB | ▼ 58.54% |