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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.28ms] Passed 4 tests
An overview of server-side resources used by Zoodpay Buy Now Pay Later For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 46.23 ▼1.28 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.07 ▼1.98 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.44 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.88 ▲2.27 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 40.64 ▲5.58 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Zoodpay Buy Now Pay Later For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.14 ▼0.13 | 1.58 ▼0.14 | 44.79 ▼3.37 |
Dashboard /wp-admin | 2,209 ▲29 | 5.65 ▼0.01 | 84.14 ▼13.00 | 43.97 ▼1.24 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▲0.04 | 38.89 ▲2.85 | 33.71 ▼9.39 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.28 ▼0.14 | 608.01 ▼83.02 | 55.20 ▼0.16 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.21 ▲0.02 | 98.14 ▼9.92 | 44.87 ▼2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/zoodpay/ZD_add_setting_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zoodpay/zoodpay.php:21
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires php: Invalid version format
- Tested up to: Invalid version format
zoodpay/zoodpay.php 92% from 13 tests
The main file in "Zoodpay Buy Now Pay Later For WooCommerce" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,166 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 699 | 67 | 1,344 |
PO File | 5 | 253 | 270 | 565 |
Markdown | 4 | 148 | 0 | 209 |
CSS | 1 | 3 | 3 | 31 |
JavaScript | 2 | 3 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 83.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 5.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.46MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assest/img/pg.png | 6.39KB | 1.42KB | ▼ 77.77% |
doc-assets/wp_wc_setting.png | 145.32KB | 50.30KB | ▼ 65.39% |
assest/img/success.png | 1.16KB | 0.26KB | ▼ 77.48% |
doc-assets/wp_admin.png | 26.75KB | 9.43KB | ▼ 64.74% |
doc-assets/wp_fill_information.png | 103.64KB | 37.38KB | ▼ 63.93% |