Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by NanoPlazo Payment Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.07 ▼3.76 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.66 ▼3.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.06 ▼0.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.41 ▼14.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.73 ▲2.45 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
NanoPlazo Payment Gateway for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.26 ▼1.39 | 1.82 ▼0.08 | 46.79 ▲0.95 |
Dashboard /wp-admin | 2,203 ▲14 | 5.85 ▲0.89 | 99.48 ▼9.53 | 39.17 ▼5.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.04 | 34.22 ▼0.47 | 34.46 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 18.24 ▼0.22 | 598.50 ▼16.17 | 56.02 ▲1.16 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.04 | 96.46 ▼6.84 | 41.05 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nanoplazo-payment-gateway-for-woocommerce/front/index.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2 in nanoplazo-payment-gateway-for-woocommerce/assets to your readme.txt
nanoplazo-payment-gateway-for-woocommerce/nanoplazo_woocommerce.php 92% from 13 tests
The main PHP script in "NanoPlazo Payment Gateway for WooCommerce" version 1.4.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nanoplazo-payment-gateway-for-woocommerce.php" instead of "nanoplazo_woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin594 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 76 | 163 | 573 |
JavaScript | 1 | 0 | 1 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-sale.png | 5.20KB | 3.31KB | ▼ 36.35% |
assets/images/logo_normal@100x24.png | 3.85KB | 2.34KB | ▼ 39.24% |
assets/images/logo.png | 11.99KB | 5.10KB | ▼ 57.46% |
assets/images/logo_sales@100x24.png | 5.41KB | 2.52KB | ▼ 53.46% |