Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wizit-gateway-for-woocommerce/wizit-gateway.php+415
Undefined offset: 1
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.72ms] Passed 4 tests
Server-side resources used by Wizit Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.94 ▲2.87 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.49 ▼2.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.46 ▼9.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.38 ▼11.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.36 ▲1.54 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Wizit Gateway for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.35 | 1.65 ▼0.21 | 38.99 ▼4.33 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▼0.05 | 93.99 ▲2.68 | 40.03 ▼0.03 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.07 | 36.45 ▼7.22 | 32.11 ▼8.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 22.87 ▼2.39 | 663.72 ▲56.95 | 55.01 ▼18.91 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▲0.02 | 94.46 ▼7.45 | 41.49 ▼5.28 |
Uninstaller [IO: ▲3.06MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following itemsZombie WordPress options detected upon uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wizit-gateway-for-woocommerce/wizit-gateway.php+415
Undefined offset: 1
- Incomplete uninstall procedure, leaving 40 files (3.06MB) in the plugin directory
- (new file) assets/js/checkout-chart.js
- (new file) assets/js/custom-popup.js
- (new file) GPL-3.0.txt
- (new file) assets/js/chart-loader.js
- (new file) README.md
- (new file) assets/js/admin.js
- (new file) assets/css/checkout.css
- (new file) assets/css/admin.css
- (new file) assets/css/custom-popup.css
- (new file) assets/js/capture-payment.js
- ...
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wizit-gateway-for-woocommerce/wizit/access.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/wizit-gateway-for-woocommerce/wizit/wysiwyg.html.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.png.), #2 (This screen shot description corresponds to screenshot-2.png.), #3 (This screen shot description corresponds to screenshot-3.png.)
wizit-gateway-for-woocommerce/wizit-gateway.php 92% from 13 tests
The main file in "Wizit Gateway for WooCommerce" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wizit-gateway-for-woocommerce.php" instead of "wizit-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin48,050 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 673 | 207 | 44,122 |
PHP | 8 | 2,833 | 381 | 2,719 |
JavaScript | 9 | 139 | 60 | 922 |
HTML | 1 | 10 | 0 | 285 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 64.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 76 | |
▷ Static methods | 14 | 18.42% |
▷ Public methods | 69 | 90.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.21% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.49MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wizit_popup.png | 295.02KB | 91.08KB | ▼ 69.13% |
assets/popup/img/wizpay-logo-popup.png | 5.08KB | 3.00KB | ▼ 40.95% |
images/Group_old.png | 7.02KB | 3.60KB | ▼ 48.73% |
assets/popup/img/swoosh-popup.png | 67.35KB | 18.78KB | ▼ 72.11% |
assets/popup/img/shopping-bag-popup.png | 51.85KB | 13.28KB | ▼ 74.39% |