Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/wc-holiday/wc-holiday.php+101
Undefined index: WCH-field-1-2
Server metrics [RAM: ▼1.92MB] [CPU: ▼57.57ms] Passed 4 tests
An overview of server-side resources used by Holiday for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 5.61 ▼44.50 |
Dashboard /wp-admin | 2.09 ▼1.22 | 6.76 ▼44.54 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.05 ▼44.86 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.78 ▼96.36 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.12 ▼27.88 |
Holiday for WooCommerce /wp-admin/admin.php?page=wc-holiday | 2.09 | 6.98 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Holiday for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.30 ▼0.05 | 1.94 ▲0.10 | 42.80 ▼2.11 |
Dashboard /wp-admin | 2,195 ▲21 | 5.64 ▲0.02 | 84.19 ▼5.49 | 38.94 ▼6.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.06 | 35.34 ▼5.21 | 33.46 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,554 ▲20 | 18.22 ▼5.03 | 618.18 ▼99.60 | 50.94 ▼7.86 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▼0.00 | 106.84 ▼2.18 | 45.10 ▼1.11 |
Holiday for WooCommerce /wp-admin/admin.php?page=wc-holiday | 805 | 2.06 | 26.18 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wc-holiday/wc-holiday.php+101
Undefined index: WCH-field-1-2
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wc-holiday
- > Notice in wp-content/plugins/wc-holiday/wc-holiday.php+67
Undefined index: WCH-field-1-2
- > GET request to /wp-admin/admin.php?page=wc-holiday
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, function 'WCH_section1' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=wc-holiday
- > Notice in wp-content/plugins/wc-holiday/wc-holiday.php+59
Undefined index: WCH-field-1-1
SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-holiday/wc-holiday.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in wc-holiday/assets to your readme.txt
wc-holiday/wc-holiday.php Passed 13 tests
The entry point to "Holiday for WooCommerce" version 1.1 is a PHP file that has certain tags in its header comment area
54 characters long description:
This plugin gives basic options to disable WooCommerce
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
Everything looks great! No dangerous files found in this plugin78 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 22 | 78 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin