Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▲3.87ms] 75% from 4 tests
An overview of server-side resources used by Perfect Brands for WooCommerce
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 512.43ms on /wp-admin/admin.php?page=wc-settings_suggestions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 47.52 ▲7.86 |
Dashboard /wp-admin | 3.82 ▲0.51 | 50.74 ▼2.43 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 53.73 ▲5.52 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 95.17 ▲5.85 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 39.83 ▲6.54 |
Suggestions /wp-admin/admin.php?page=wc-settings_suggestions | 4.13 | 512.43 |
Server storage [IO: ▲0.83MB] [DB: ▲0.06MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 139 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
pwb_activate_on |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Perfect Brands for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲151 | 14.09 ▼0.62 | 1.72 ▲0.08 | 40.86 ▼3.17 |
Dashboard /wp-admin | 2,321 ▲144 | 5.62 ▲0.03 | 91.97 ▼6.86 | 42.48 ▼4.57 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.97 ▼0.06 | 39.91 ▲0.22 | 36.51 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,549 ▲22 | 23.33 ▲0.27 | 630.34 ▼36.43 | 54.17 ▼5.83 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.25 ▲0.04 | 95.54 ▼10.34 | 43.01 ▼1.13 |
Suggestions /wp-admin/admin.php?page=wc-settings_suggestions | 1,951 | 2.48 | 35.21 | 52.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 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 had uncaught errors
- > Warning in wp-content/plugins/perfect-woocommerce-brands/uninstall.php+19
unlink(wp-content/uploads/pwb-export.json): No such file or directory
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- old_wc_pwb_admin_tab_slug
- can_compress_scripts
- pwb_activate_on
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 33× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/perfect-woocommerce-brands/lib/admin/class-brands-custom-fields.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/admin/class-admin-tab.php
- > /wp-content/plugins/perfect-woocommerce-brands/templates/widgets/filter-by-brand.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/admin/class-exporter-support.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/admin/class-system-status.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/admin/class-edit-brands-page.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/shortcodes/class-carousel.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/admin/class-importer-support.php
- > /wp-content/plugins/perfect-woocommerce-brands/templates/admin/brands-exporter.php
- > /wp-content/plugins/perfect-woocommerce-brands/lib/shortcodes/class-brand.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/templates/notice.php:13
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActionsLinks' not found in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/Traits/PluginActions.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/view/suggestions.php:21
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlugV2.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/perfect-woocommerce-brands/vendor/automattic/jetpack-composer-plugin/src/class-manager.php:18
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginDataByFile' not found in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginByFile.php on line 20
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/perfect-woocommerce-brands/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlug.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocommerce manufacturer, woocommerce, e-commerce, woocommerce product, woocommerce supplier...
perfect-woocommerce-brands/perfect-woocommerce-brands.php 92% from 13 tests
The principal PHP file in "Perfect Brands for WooCommerce" v. 3.2.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "4.0")
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
Everything looks great! No dangerous files found in this plugin12,854 lines of code in 109 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,166 | 2,001 | 6,071 |
JavaScript | 6 | 498 | 59 | 4,822 |
Markdown | 12 | 270 | 0 | 730 |
JSON | 1 | 0 | 0 | 458 |
Sass | 2 | 27 | 5 | 266 |
LESS | 2 | 23 | 6 | 247 |
CSS | 4 | 44 | 5 | 239 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 1 | 2.33% |
Methods | 276 | |
▷ Static methods | 71 | 25.72% |
▷ Public methods | 227 | 82.25% |
▷ Protected methods | 2 | 0.72% |
▷ Private methods | 47 | 17.03% |
Functions | 21 | |
▷ Named functions | 1 | 4.76% |
▷ Anonymous functions | 20 | 95.24% |
Constants | 26 | |
▷ Global constants | 26 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/frontend/img/dummy-data/brand2.png | 5.92KB | 6.65KB | 0.00% |
assets/frontend/img/dummy-data/brand5.png | 6.28KB | 7.01KB | 0.00% |
assets/frontend/img/dummy-data/brand10.png | 7.90KB | 8.81KB | 0.00% |
assets/frontend/img/dummy-data/brand4.png | 7.60KB | 8.64KB | 0.00% |
assets/frontend/img/dummy-data/brand8.png | 7.26KB | 8.13KB | 0.00% |