Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.78ms] Passed 4 tests
This is a short check of server-side resources used by TakBull For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.40 ▲0.34 |
Dashboard /wp-admin | 3.33 ▼0.01 | 51.22 ▼13.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.21 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.43 ▼11.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 39.56 ▲4.47 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
wc_takbull_version |
Browser metrics Passed 4 tests
An overview of browser requirements for TakBull For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.37 ▼0.29 | 2.22 ▲0.26 | 41.15 ▼1.31 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▼0.06 | 89.71 ▼3.91 | 38.73 ▼4.76 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.04 | 39.23 ▲0.05 | 36.85 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.61 ▲0.61 | 674.93 ▲28.73 | 58.55 ▲2.13 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.05 | 108.72 ▲4.70 | 48.52 ▲1.22 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- wc_takbull_version
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Data' not found in wp-content/plugins/takbull-gateway/models/class-takbull-transaction.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Data' not found in wp-content/plugins/takbull-gateway/includes/class-takbull-invoice.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/takbull-gateway/includes/class-takbull-order.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI ("")
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
takbull-gateway/woocommerce-gateway-takbull.php 85% from 13 tests
The principal PHP file in "TakBull For WooCommerce" v. 4.0.5.10 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("takbull-gateway.php" instead of "woocommerce-gateway-takbull.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,173 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 366 | 550 | 2,946 |
CSS | 2 | 22 | 6 | 809 |
JavaScript | 5 | 17 | 7 | 200 |
PO File | 1 | 60 | 0 | 145 |
SVG | 4 | 0 | 4 | 73 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 20 | 14.29% |
▷ Public methods | 136 | 97.14% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 3 | 2.14% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 27 | |
▷ Global constants | 8 | 29.63% |
▷ Class constants | 19 | 70.37% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/cc_icons.png | 6.45KB | 2.17KB | ▼ 66.33% |
includes/assets/images/mastercard_visa.png | 19.50KB | 2.10KB | ▼ 89.24% |
includes/assets/images/logo_bit.png | 2.10KB | 1.89KB | ▼ 10.01% |