Benchmarks
Plugin footprint 82% 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.04MB] [CPU: ▼4.16ms] Passed 4 tests
Analyzing server-side resources used by Web Payment Software Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.71 ▼0.04 |
Dashboard /wp-admin | 3.35 ▲0.01 | 50.46 ▼15.74 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.89 ▲3.53 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.46 ▲0.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 39.07 ▼1.73 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/web-payment-software-payment-gateway-for-woocommerce/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
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_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Web Payment Software Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 13.58 ▼0.61 | 1.81 ▼0.09 | 47.37 ▲2.25 |
Dashboard /wp-admin | 2,226 ▲26 | 5.80 ▼0.01 | 100.72 ▼2.08 | 43.81 ▲6.56 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.01 | 38.73 ▲0.83 | 40.63 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,537 ▼8 | 23.03 ▼0.13 | 655.82 ▼20.86 | 58.30 ▼9.73 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.25 ▲0.02 | 98.88 ▼19.51 | 44.38 ▼3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_API' not found in wp-content/plugins/web-payment-software-payment-gateway-for-woocommerce/classes/class-wc-gateway-webpaymentsoftware-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/web-payment-software-payment-gateway-for-woocommerce/woo-includes/woo-functions.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
web-payment-software-payment-gateway-for-woocommerce/webpaymentsoftware.php 92% from 13 tests
"Web Payment Software Payment Gateway for WooCommerce" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("web-payment-software-payment-gateway-for-woocommerce.php" instead of "webpaymentsoftware.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,187 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 153 | 179 | 552 |
XML | 1 | 94 | 0 | 518 |
PO File | 1 | 44 | 44 | 117 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cards.png | 2.11KB | 1.81KB | ▼ 14.01% |