Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼6.12ms] Passed 4 tests
An overview of server-side resources used by WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 38.56 ▼4.60 |
Dashboard /wp-admin | 3.76 ▲0.42 | 49.35 ▼7.86 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 49.93 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 82.37 ▼11.06 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 35.04 ▼0.94 |
Server storage [IO: ▲30.81MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Total filesystem usage should be limited to 25MB (currently using 30.81MB)
Filesystem: 695 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲52 | 14.23 ▲0.11 | 1.61 ▼0.35 | 37.44 ▼17.72 |
Dashboard /wp-admin | 2,211 ▲34 | 5.62 ▲0.00 | 98.21 ▼1.53 | 42.96 ▲0.39 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.94 ▼0.06 | 40.37 ▼0.14 | 36.97 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.05 ▼0.32 | 587.78 ▼51.47 | 51.97 ▲3.21 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.25 ▲0.11 | 100.44 ▼6.56 | 42.81 ▼3.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 87× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/orders/wcfm-view-orders-details.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wc-frontend-manager/views/wc_bookings/wcfm-view-wcbookings-details.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/notice/wcfm-view-notice-manage.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/enquiry/wcfm-view-enquiry.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/withdrawal/dokan/wcfm-view-payments.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/vendors/wcfm-view-vendors-manage.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/knowledgebase/wcfm-view-knowledgebase-manage.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wc-frontend-manager/views/wc_bookings/wcfm-view-wcbookings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_product() in wp-content/plugins/wc-frontend-manager/views/enquiry/wcfm-view-enquiry-form.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/articles/wcfm-view-articles-manage.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
wc-frontend-manager/wc_frontend_manager.php 85% from 13 tests
The main PHP script in "WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible" version 6.7.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.0.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-frontend-manager.php" instead of "wc_frontend_manager.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected192,031 lines of code in 513 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 137 | 11,411 | 10,912 | 54,462 |
PHP | 207 | 9,876 | 7,561 | 53,891 |
PO File | 15 | 18,984 | 34,704 | 43,486 |
CSS | 119 | 5,902 | 201 | 21,888 |
SVG | 7 | 0 | 0 | 14,778 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 211)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 71.44 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 696.00 |
Average method complexity | 8.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 211.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 119 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,161 | |
▷ Static methods | 75 | 6.46% |
▷ Public methods | 1,141 | 98.28% |
▷ Protected methods | 6 | 0.52% |
▷ Private methods | 14 | 1.21% |
Functions | 139 | |
▷ Named functions | 128 | 92.09% |
▷ Anonymous functions | 11 | 7.91% |
Constants | 23 | |
▷ Global constants | 14 | 60.87% |
▷ Class constants | 9 | 39.13% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
102 PNG files occupy 1.15MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/modules/shipstation.png | 17.19KB | 7.07KB | ▼ 58.85% |
assets/images/user.png | 32.79KB | 14.44KB | ▼ 55.97% |
assets/images/modules/profile.png | 15.70KB | 6.24KB | ▼ 60.28% |
assets/images/your-logo-here-bak.png | 2.42KB | 2.42KB | 0.00% |
assets/images/media/video.png | 0.28KB | 0.28KB | 0.00% |