Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼7.23ms] Passed 4 tests
This is a short check of server-side resources used by Flash Sale Product for WooCommerce - WPSHARE247
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.93 ▲3.87 |
Dashboard /wp-admin | 3.35 ▲0.01 | 50.29 ▼3.98 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 42.26 ▼8.68 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.70 | 61.27 ▼18.34 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.46 ▲2.08 |
Flash sale /wp-admin/admin.php?page=ws247-fspw-options | 3.26 | 33.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flash Sale Product for WooCommerce - WPSHARE247
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.35 ▲0.07 | 1.68 ▲0.12 | 43.59 ▲6.73 |
Dashboard /wp-admin | 2,198 ▲28 | 5.62 ▼0.05 | 96.50 ▼9.64 | 43.64 ▲1.66 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.01 | 34.81 ▼5.68 | 35.27 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 18.41 ▲0.39 | 634.39 ▼3.56 | 64.97 ▼16.58 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.37 ▲0.06 | 100.97 ▲1.38 | 45.66 ▲0.60 |
Flash sale /wp-admin/admin.php?page=ws247-fspw-options | 903 | 1.99 | 23.59 | 20.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ws247-fspw-options
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WS247_FSPW_SETTING_PAGE_SLUG - assumed 'WS247_FSPW_SETTING_PAGE_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/class.setting.page.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/theme_functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/option-form-template.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/tabs/tab_pro_general.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/class.setting.page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/flash-sale-product-wc-wpshare247/inc/define.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== flash-sale-product-wc-wpshare247 ===
)
flash-sale-product-wc-wpshare247/flash-sale-product-wc-wpshare247.php 92% from 13 tests
"Flash Sale Product for WooCommerce - WPSHARE247" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin390 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 59 | 31 | 301 |
CSS | 1 | 1 | 0 | 44 |
PO File | 1 | 9 | 1 | 33 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin