Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.78ms] Passed 4 tests
Analyzing server-side resources used by Add Product Frontend for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.75 ▼7.18 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.48 ▼5.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.76 ▲3.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.31 ▼3.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.65 ▲0.67 |
Server storage [IO: ▲1.97MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 8 new options
New WordPress options |
---|
deferred_admin_notices |
widget_recent-comments |
can_compress_scripts |
woocommerce_install_and_activate_admin_notices |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Add Product Frontend for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.33 | 1.79 ▲0.16 | 43.72 ▲0.91 |
Dashboard /wp-admin | 2,195 ▲14 | 5.60 ▼0.08 | 93.97 ▼6.50 | 40.73 ▼0.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 39.25 ▲4.09 | 36.58 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.61 ▲0.16 | 588.58 ▼34.00 | 54.28 ▲9.14 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.21 ▼0.01 | 99.18 ▼1.42 | 40.39 ▼1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/add-product-frontend-for-woocommerce/trunk/admin/partials/plugin-setting-bytes-add-product-frontend.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-product-frontend-for-woocommerce/public/inc/bytes-save-product.php:3
- > PHP Notice
Undefined variable: comments in wp-content/plugins/add-product-frontend-for-woocommerce/trunk/lib/plugin-deactivation/email/admin-deactivate-plugin.php on line 50
- > PHP Notice
Undefined variable: product_message in wp-content/plugins/add-product-frontend-for-woocommerce/trunk/public/partials/emails/admin-new-product.php on line 34
- > PHP Notice
Undefined variable: plugin_header in wp-content/plugins/add-product-frontend-for-woocommerce/lib/plugin-deactivation/email/admin-deactivate-plugin.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/add-product-frontend-for-woocommerce/admin/partials/plugin-bytes-product-list.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/add-product-frontend-for-woocommerce/trunk/admin/partials/plugin-info-bytes-add-product-frontend.php:2
- > PHP Notice
Undefined variable: product_title in wp-content/plugins/add-product-frontend-for-woocommerce/public/partials/emails/admin-new-product.php on line 47
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-product-frontend-for-woocommerce/admin/partials/setting/plugin-setting-user-role.php:3
- > PHP Notice
Undefined variable: reason in wp-content/plugins/add-product-frontend-for-woocommerce/trunk/lib/plugin-deactivation/email/admin-deactivate-plugin.php on line 46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
add-product-frontend-for-woocommerce/bytes-add-product-frontend-for-woocommerce.php 77% from 13 tests
The principal PHP file in "Add Product Frontend for WooCommerce" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("add-product-frontend-for-woocommerce.php" instead of "bytes-add-product-frontend-for-woocommerce.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 262 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected7,049 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 192 | 303 | 3,768 |
CSS | 7 | 365 | 83 | 2,154 |
JavaScript | 15 | 124 | 123 | 1,110 |
SVG | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 4 | 4.35% |
▷ Public methods | 82 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 10.87% |
Functions | 42 | |
▷ Named functions | 36 | 85.71% |
▷ Anonymous functions | 6 | 14.29% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin