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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼277.47ms] Passed 4 tests
A check of server-side resources used by Easy Woocommerce Brands
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.21 ▲3.64 |
Dashboard /wp-admin | 3.27 ▲0.22 | 77.90 ▲21.61 |
Posts /wp-admin/edit.php | 3.32 ▲0.22 | 44.65 ▼11.41 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 112.39 ▼1,075.58 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 32.93 ▼26.54 |
EWB Settings /wp-admin/options-general.php?page=ewb_settings | 3.13 | 34.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ewb_brands_list |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Woocommerce Brands
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲272 | 17.32 ▲1.78 | 10.12 ▼0.74 | 46.24 ▼5.06 |
Dashboard /wp-admin | 3,129 ▲276 | 8.02 ▲2.20 | 193.64 ▲59.68 | 134.56 ▲28.24 |
Posts /wp-admin/edit.php | 2,920 ▲214 | 4.30 ▲1.61 | 80.78 ▲10.18 | 102.52 ▲10.38 |
Add New Post /wp-admin/post-new.php | 1,594 ▼62 | 21.21 ▲2.78 | 307.27 ▼76.83 | 120.90 ▼1.11 |
Media Library /wp-admin/upload.php | 1,796 ▲24 | 4.79 ▼0.22 | 144.85 ▼39.83 | 124.87 ▼18.05 |
EWB Settings /wp-admin/options-general.php?page=ewb_settings | 1,490 | 3.35 | 76.02 | 106.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_ewb_brands_list
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 | 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
- 6× 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/easy-woocommerce-brands/easy-woocommerce-brands.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-woocommerce-brands/include/widget/brands-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-woocommerce-brands/include/shortcode/ewb_page.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-brands/include/brand_image_field.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-brands/include/admin/brand_image_field.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-woocommerce-brands/include/admin/ewb-settings.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: brand, manufacturer, woocommerce brands, logo, brands
easy-woocommerce-brands/easy-woocommerce-brands.php 92% from 13 tests
Analyzing the main PHP file in "Easy Woocommerce Brands" version 1.1
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin527 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 107 | 79 | 527 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected