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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.79ms] Passed 4 tests
A check of server-side resources used by TBC E-commerce for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.85 ▼4.37 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.37 ▼7.31 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.80 ▼3.77 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 97.19 ▲2.56 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.34 ▲0.28 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for TBC E-commerce for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.25 ▼1.50 | 4.51 ▲2.62 | 42.02 ▲0.14 |
Dashboard /wp-admin | 2,221 ▲18 | 5.82 ▼0.04 | 100.48 ▼20.43 | 40.65 ▼2.84 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.01 | 35.47 ▼1.03 | 34.39 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,558 ▲12 | 18.20 ▼4.97 | 606.37 ▼62.69 | 61.73 ▲3.51 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.05 | 100.79 ▼0.20 | 45.70 ▲0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: payment gateway, tbc
tpay-ge-woocommerce/tpay-for-woocommerce.php 77% from 13 tests
This is the main PHP file of "TBC E-commerce for WooCommerce" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tpay-ge-woocommerce.php" instead of "tpay-for-woocommerce.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
Everything looks great! No dangerous files found in this plugin1,155 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 271 | 623 | 1,107 |
XML | 1 | 15 | 42 | 29 |
JSON | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 5 | 7.81% |
▷ Public methods | 63 | 98.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.56% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Cards.png | 1.61KB | 1.52KB | ▼ 5.41% |
assets/ApplePay.png | 0.82KB | 1.19KB | 0.00% |
assets/TBC.png | 0.70KB | 0.85KB | 0.00% |
assets/QR.png | 2.95KB | 1.52KB | ▼ 48.31% |
assets/Ertguli.png | 1.05KB | 1.02KB | ▼ 2.51% |