Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/woocommerce-accepted-payment-methods/accepted-payment-methods.php+186
Methods with the same name as their class will not be constructors in a future version of PHP; Accepted_Payment_Methods has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.96ms] Passed 4 tests
A check of server-side resources used by WooCommerce Accepted Payment Methods
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.31 ▼3.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.28 ▼2.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.69 ▼5.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 100.51 ▼0.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.99 ▲2.80 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Accepted Payment Methods
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.31 ▲0.08 | 2.11 ▲0.27 | 41.60 ▼3.34 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.04 | 87.32 ▼0.34 | 37.85 ▼0.53 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.95 ▲0.01 | 39.73 ▲5.20 | 35.07 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.48 ▼0.06 | 598.67 ▼85.78 | 53.22 ▼1.33 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.03 | 98.17 ▼11.56 | 41.88 ▼5.11 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/woocommerce-accepted-payment-methods/accepted-payment-methods.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The Accepted Payment Methods options), #2 (The widget)
woocommerce-accepted-payment-methods/accepted-payment-methods.php 92% from 13 tests
The principal PHP file in "WooCommerce Accepted Payment Methods" v. 0.7.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-accepted-payment-methods.php" instead of "accepted-payment-methods.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin738 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 120 | 226 | 324 |
PHP | 1 | 30 | 44 | 170 |
LESS | 1 | 8 | 3 | 126 |
CSS | 1 | 0 | 0 | 115 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 25.92KB | 7.92KB | ▼ 69.43% |
assets/images/mastercard.png | 1.13KB | 1.16KB | 0.00% |
assets/images/google@2x.png | 4.99KB | 2.46KB | ▼ 50.74% |
assets/images/visa.png | 1.95KB | 1.47KB | ▼ 24.36% |
assets/images/bitcoin.png | 1.96KB | 1.69KB | ▼ 13.73% |