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
These installer errors require your attention
- The plugin cannot be installed
- > Error in wp-content/plugins/ecomatcher-for-woocommerce/inc/Base/EcoMatcher-Activate.php+78
Uncaught Error: Call to undefined function wc_update_product_stock() in wp-content/plugins/ecomatcher-for-woocommerce/inc/Base/EcoMatcher-Activate.php:78
Stack trace:
#0 wp-content/plugins/ecomatcher-for-woocommerce/ecomatcher.php(45): EcoMatcher_Activate->activate()
#1 wp-includes/class-wp-hook.php(310): activate_ecomatcher_plugin()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.79ms] Passed 4 tests
Analyzing server-side resources used by EcoMatcher
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.73 ▲1.04 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.67 ▼15.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.16 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.23 ▼20.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.61 ▲2.61 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for EcoMatcher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.18 ▼1.19 | 6.05 ▲4.12 | 44.31 ▲0.75 |
Dashboard /wp-admin | 2,218 ▲12 | 5.86 ▼0.03 | 111.71 ▲5.52 | 46.44 ▲5.11 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.00 | 36.55 ▼1.18 | 35.58 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 21.00 ▼2.39 | 628.39 ▼82.05 | 45.86 ▼21.06 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.34 ▲0.18 | 104.53 ▼2.05 | 45.42 ▼1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ecomatcher-for-woocommerce/uninstall.php
- > /wp-content/plugins/ecomatcher-for-woocommerce/ecomatcher.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ecomatcher-for-woocommerce/inc/EcoMatcher-Init.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ecomatcher-for-woocommerce/templates/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ecomatcher-for-woocommerce/inc/Pages/EcoMatcher-Admin.php:3
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: sustainability, ecomatcher, tree, forest, ecommerce
ecomatcher-for-woocommerce/ecomatcher.php 85% from 13 tests
The main file in "EcoMatcher" v. 1.3.11 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: It is recommended to name the main PHP file as the plugin slug ("ecomatcher-for-woocommerce.php" instead of "ecomatcher.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin972 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 460 | 30 | 863 |
JavaScript | 2 | 7 | 1 | 58 |
CSS | 2 | 7 | 0 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/EcoMatcher-button-v2.png | 2.55KB | 0.99KB | ▼ 61.19% |
image/EcoMatcher-button.png | 22.21KB | 1.53KB | ▼ 93.12% |