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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.81ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Addon for PayUbiz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.58 ▼2.97 |
Dashboard /wp-admin | 3.32 ▲0.01 | 55.10 ▲0.67 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.70 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.52 ▼8.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.97 ▲0.35 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Addon for PayUbiz: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.00 | 1.77 ▼0.05 | 41.48 ▲0.40 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.19 | 110.26 ▼2.55 | 40.36 ▼4.44 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.02 | 40.72 ▲2.35 | 37.40 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.05 ▲5.41 | 673.70 ▲1.31 | 57.71 ▲8.47 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.00 | 103.45 ▼14.34 | 47.72 ▼0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'class-wcpz-dependencies.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-addon-for-payubiz/woo-includes/woo-functions.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-addon-for-payubiz/woocommerce-payubiz.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-addon-for-payubiz/classes/payubiz.class.php:3
- > PHP Warning
require_once(class-wcpz-dependencies.php): failed to open stream: No such file or directory in wp-content/plugins/woo-addon-for-payubiz/woo-includes/woo-functions.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in woo-addon-for-payubiz/assets to your readme.txt
woo-addon-for-payubiz/woocommerce-payubiz.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Addon for PayUbiz" version 1.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-addon-for-payubiz.php" instead of "woocommerce-payubiz.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin442 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 147 | 161 | 366 |
PO File | 1 | 27 | 55 | 76 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 3.31KB | 2.51KB | ▼ 24.01% |