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.00MB] [CPU: ▼0.99ms] Passed 4 tests
An overview of server-side resources used by metaps PAYMENT for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.86 ▼4.54 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.14 ▲2.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.69 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.05 ▲0.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.93 ▼0.05 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by metaps PAYMENT for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.34 ▼0.01 | 1.72 ▲0.09 | 44.51 ▲3.02 |
Dashboard /wp-admin | 2,209 ▲32 | 5.59 ▼0.08 | 89.76 ▼3.40 | 44.51 ▼3.85 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.95 ▼0.07 | 40.21 ▼0.75 | 39.21 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.34 ▲5.16 | 653.89 ▲31.28 | 49.85 ▼13.26 |
Media Library /wp-admin/upload.php | 1,414 ▲20 | 4.19 ▲0.03 | 101.79 ▼11.66 | 45.77 ▼3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-paydesign/notice-url.php
- > /wp-content/plugins/woo-paydesign/includes/gateways/paydesign/empty.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-paydesign/includes/admin/views/html-admin-info-screen.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-paydesign/includes/admin/views/html-admin-setting-screen.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-paydesign/includes/admin/views/html-admin-screen.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: japanese, e-commerce, ecommerce, woocommerce
woo-paydesign/woo-paydesign.php Passed 13 tests
The principal PHP file in "metaps PAYMENT for WooCommerce" v. 1.3.0 is loaded by WordPress automatically on each request
66 characters long description:
metaps PAYMENT (before PAYDESIGN) gateway payment for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,110 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 346 | 1,085 | 2,793 |
Sass | 1 | 4 | 0 | 160 |
CSS | 1 | 12 | 4 | 155 |
JavaScript | 1 | 1 | 1 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 32.18 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 2 | 1.63% |
▷ Public methods | 107 | 86.99% |
▷ Protected methods | 9 | 7.32% |
▷ Private methods | 7 | 5.69% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.38MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/gateways/paydesign/asset/images/gmopg-cards-a-j.png | 48.71KB | 1.46KB | ▼ 97.00% |
assets/images/woo-logo.png | 19.97KB | 7.37KB | ▼ 63.08% |
includes/gateways/paydesign/asset/images/gmopg-cards-v-m-d.png | 53.98KB | 2.24KB | ▼ 95.86% |
includes/gateways/paydesign/asset/images/gmopg-cards-d-a-j.png | 51.08KB | 1.81KB | ▼ 96.46% |
includes/gateways/paydesign/asset/images/gmopg-cards-d.png | 48.97KB | 1.24KB | ▼ 97.46% |