Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/minimum-order-amount/ecpm-moa.php+33
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.86MB] [CPU: ▼29.42ms] Passed 4 tests
This is a short check of server-side resources used by Minimum Order Amount
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.57 ▲3.83 |
Dashboard /wp-admin | 3.08 ▼0.22 | 32.05 ▼15.01 |
Posts /wp-admin/edit.php | 3.08 ▼0.28 | 25.00 ▼23.69 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.81 | 23.56 ▼69.21 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 22.22 ▼9.75 |
Minimum Order Amount /wp-admin/options-general.php?page=ecpm_moa_settings_page | 3.09 | 25.88 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
ecpm_moa_settings |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Minimum Order Amount
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.24 ▼1.13 | 1.95 ▲0.30 | 42.23 ▲2.06 |
Dashboard /wp-admin | 2,215 ▲27 | 5.85 ▲0.96 | 112.89 ▲7.90 | 42.23 ▲4.85 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.01 | 35.24 ▲0.23 | 31.93 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.12 ▼0.20 | 677.75 ▲22.12 | 61.96 ▲9.17 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.16 ▼0.01 | 94.39 ▼4.14 | 45.05 ▼1.04 |
Minimum Order Amount /wp-admin/options-general.php?page=ecpm_moa_settings_page | 1,156 | 2.02 | 23.61 | 66.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/minimum-order-amount/ecpm-moa.php+39
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ecpm_moa_settings_page
- > Warning in wp-content/plugins/minimum-order-amount/ecpm-moa.php+39
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/minimum-order-amount/image_sidebar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/minimum-order-amount/ecpm-moa.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/minimum-order-amount/paid_plugin_inc.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=ecpm_moa_settings_page
- > Network (severe)
wp-content/plugins/minimum-order-amount/images/easy-credit-payments.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% 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:
- Screenshots: These screenshots require images: #1 (Plugin's settings), #2 (Warning message), #3 (Error message)
minimum-order-amount/ecpm-moa.php 77% from 13 tests
The main file in "Minimum Order Amount" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("minimum-order-amount.php" instead of "ecpm-moa.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 172 characters long)
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
Good job! No executable or dangerous file extensions detected482 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 62 | 11 | 328 |
PO File | 2 | 43 | 45 | 141 |
CSS | 1 | 2 | 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.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.39MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/user-ads-limiter.png | 43.08KB | 16.86KB | ▼ 60.86% |
images/image-loop-rotator.png | 2.74KB | 2.85KB | 0.00% |
images/minimum-order-amount.png | 21.68KB | 9.69KB | ▼ 55.32% |
images/better-featured-slider.png | 16.74KB | 7.50KB | ▼ 55.18% |
screenshot-3.png | 18.48KB | 11.66KB | ▼ 36.87% |