Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▼2.99ms] 75% from 4 tests
Analyzing server-side resources used by WooCommerce Simple Frontend Manager
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,813.25ms on /wp-admin/admin.php?page=wpatof_welcome_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 47.34 ▲5.94 |
Dashboard /wp-admin | 3.98 ▲0.64 | 61.13 ▼1.43 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 56.64 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 90.11 ▼19.47 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 45.00 ▲8.48 |
Simple Frontend Manager /wp-admin/admin.php?page=wpatof_welcome_page | 4.24 | 1,813.25 |
Simple Frontend Manager /wp-admin/admin.php?page=wpatof_whats_new | 3.87 | 39.76 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 4.22 | 40.24 |
Server storage [IO: ▲3.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 216 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_accounts |
wpatof_welcome_redirect |
theysaidso_admin_options |
widget_recent-posts |
fs_active_plugins |
db_upgraded |
fs_gdpr |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Simple Frontend Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.31 ▼0.35 | 1.67 ▼0.16 | 32.58 ▼6.77 |
Dashboard /wp-admin | 2,240 ▲59 | 5.55 ▼0.16 | 92.02 ▼6.93 | 86.73 ▲42.76 |
Posts /wp-admin/edit.php | 2,161 ▲64 | 2.00 ▲0.01 | 38.26 ▼0.13 | 36.97 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,580 ▲45 | 18.17 ▼4.62 | 735.11 ▲51.97 | 66.35 ▲8.44 |
Media Library /wp-admin/upload.php | 1,460 ▲63 | 4.27 ▲0.12 | 99.03 ▲0.37 | 83.06 ▲38.42 |
Simple Frontend Manager /wp-admin/admin.php?page=wpatof_welcome_page | 1,024 | 1.70 | 26.62 | 48.98 |
Simple Frontend Manager /wp-admin/admin.php?page=wpatof_whats_new | 829 | 1.66 | 25.75 | 26.47 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,107 | 1.89 | 28.17 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/inc/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- fs_active_plugins
- theysaidso_admin_options
- db_upgraded
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- wpatof_welcome_redirect
- can_compress_scripts
- fs_accounts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/views/frontend/log-in-message.php
- 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: login_form in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/views/frontend/log-in-message.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function VG_Admin_To_Frontend_Obj() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/inc/change-texts.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-simple-frontend-manager/index.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/inc/table-columns-manager.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/inc/show-own-posts.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/views/frontend/already-logged-in-message.php:2
- > PHP Notice
Undefined variable: login_message in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/views/frontend/log-in-message.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/views/frontend/wrong-permissions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/inc/global-dashboard.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/woo-simple-frontend-manager/vendor/display-admin-page-on-frontend/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Notice
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 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in woo-simple-frontend-manager/assets to your readme.txt
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
woo-simple-frontend-manager/index.php 92% from 13 tests
The main PHP script in "WooCommerce Simple Frontend Manager" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-simple-frontend-manager.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin41,601 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 7,911 | 16,400 | 35,587 |
PO File | 4 | 724 | 968 | 4,118 |
JavaScript | 6 | 170 | 209 | 1,503 |
CSS | 14 | 12 | 9 | 393 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 83.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,322 | |
▷ Static methods | 183 | 13.84% |
▷ Public methods | 972 | 73.52% |
▷ Protected methods | 15 | 1.13% |
▷ Private methods | 335 | 25.34% |
Functions | 105 | |
▷ Named functions | 104 | 99.05% |
▷ Anonymous functions | 1 | 0.95% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/display-admin-page-on-frontend/assets/imgs/logo.png | 31.48KB | 12.71KB | ▼ 59.61% |
vendor/display-admin-page-on-frontend/assets/imgs/toolbar-item-screenshot.png | 17.46KB | 6.76KB | ▼ 61.28% |
vendor/display-admin-page-on-frontend/inc/freemius/assets/img/display-admin-page-on-frontend.png | 7.52KB | 3.61KB | ▼ 52.01% |
vendor/display-admin-page-on-frontend/assets/imgs/wp-admin-icon.png | 0.80KB | 1.07KB | 0.00% |
vendor/display-admin-page-on-frontend/inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |