Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.93ms] Passed 4 tests
A check of server-side resources used by Zip North America Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 49.16 ▲9.06 |
Dashboard /wp-admin | 3.52 ▲0.22 | 73.68 ▲23.99 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 45.91 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 78.81 ▼15.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.59 ▲1.51 |
Server storage [IO: ▲0.11MB] [DB: ▲0.27MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Zip North America Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.20 | 1.58 ▼0.28 | 39.81 ▼5.89 |
Dashboard /wp-admin | 2,203 ▲51 | 4.86 ▼0.76 | 97.37 ▲0.50 | 37.33 ▼3.30 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.14 ▲0.10 | 33.79 ▼3.00 | 34.64 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.61 ▲1.05 | 641.06 ▼25.54 | 71.39 ▲15.46 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.03 | 97.03 ▼5.34 | 43.60 ▼3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.26MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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: Class 'WC_Payment_Gateway' not found in wp-content/plugins/quadpay-gateway-for-woocommerce/includes/class-quadpay-gateway.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/quadpay-gateway-for-woocommerce/quadpay.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Contributors not specified
quadpay-gateway-for-woocommerce/quadpay.php 92% from 13 tests
Analyzing the main PHP file in "Zip North America Gateway for WooCommerce" version 1.7.3
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quadpay-gateway-for-woocommerce.php" instead of "quadpay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,279 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 352 | 386 | 1,249 |
JavaScript | 2 | 2 | 2 | 17 |
SVG | 5 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 7 | 12.07% |
▷ Public methods | 55 | 94.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.17% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin