Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲4.97MB] [CPU: ▲15.77ms] 75% from 4 tests
This is a short check of server-side resources used by Premmerce Brands for WooCommerce
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,853.57ms on /wp-admin/admin.php?page=premmerce-woocommerce-brands)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.85 ▲5.38 | 62.33 ▲23.66 |
Dashboard /wp-admin | 8.87 ▲5.52 | 69.93 ▲7.13 |
Posts /wp-admin/edit.php | 8.87 ▲5.51 | 70.06 ▲22.53 |
Add New Post /wp-admin/post-new.php | 9.34 ▲3.46 | 107.49 ▲9.77 |
Media Library /wp-admin/upload.php | 8.87 ▲5.64 | 77.02 ▲42.75 |
Premmerce Brands for WooCommerce /wp-admin/admin.php?page=premmerce-woocommerce-brands | 8.87 | 1,853.57 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.87 | 69.76 |
Server storage [IO: ▲3.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 227 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Premmerce Brands for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.22 ▼0.18 | 1.69 ▼0.06 | 28.10 ▼10.84 |
Dashboard /wp-admin | 2,219 ▲42 | 5.66 ▲0.00 | 83.14 ▼9.18 | 40.33 ▼0.73 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.10 ▲0.12 | 38.08 ▼2.76 | 35.14 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.04 ▼0.53 | 615.03 ▼20.32 | 47.68 ▼15.36 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.22 ▲0.03 | 100.96 ▼5.51 | 45.54 ▲1.27 |
Premmerce Brands for WooCommerce /wp-admin/admin.php?page=premmerce-woocommerce-brands | 977 | 1.65 | 28.88 | 62.81 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,054 | 1.70 | 28.84 | 29.53 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- fs_accounts
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SDK\\V2\\Plugin\\PluginInterface' not found in wp-content/plugins/premmerce-woocommerce-brands/src/BrandsPlugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/premmerce-woocommerce-brands/src/Frontend/Widgets/BrandsWidget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: woocommerce brands, product brands, brands
premmerce-woocommerce-brands/premmerce-brands.php 77% from 13 tests
The main file in "Premmerce Brands for WooCommerce" v. 1.2.13 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:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("premmerce-woocommerce-brands.php" instead of "premmerce-brands.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "3.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected35,302 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 8,322 | 17,886 | 34,303 |
Markdown | 2 | 121 | 0 | 284 |
JavaScript | 5 | 56 | 67 | 282 |
PO File | 3 | 122 | 209 | 264 |
CSS | 16 | 18 | 6 | 109 |
JSON | 2 | 0 | 0 | 60 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,357 | |
▷ Static methods | 218 | 16.06% |
▷ Public methods | 960 | 70.74% |
▷ Protected methods | 17 | 1.25% |
▷ Private methods | 380 | 28.00% |
Functions | 107 | |
▷ Named functions | 100 | 93.46% |
▷ Anonymous functions | 7 | 6.54% |
Constants | 150 | |
▷ Global constants | 98 | 65.33% |
▷ Class constants | 52 | 34.67% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/frontend/img/placeholder.png | 15.49KB | 5.17KB | ▼ 66.65% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/premmerce-woocommerce-brands.png | 7.63KB | 4.09KB | ▼ 46.39% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |