Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.25ms] Passed 4 tests
Server-side resources used by Woo Store Vacation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.03 ▼8.35 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.05 ▼10.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.00 ▲5.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.26 ▼12.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.07 ▲2.97 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Store Vacation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲76 | 14.72 ▲0.01 | 1.68 ▼0.09 | 27.65 ▼17.77 |
Dashboard /wp-admin | 2,243 ▲65 | 5.65 ▼0.03 | 91.66 ▼23.37 | 47.14 ▲1.58 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.17 ▲0.21 | 39.96 ▲1.42 | 41.59 ▲7.13 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.39 ▲2.14 | 668.13 ▼28.56 | 57.47 ▼3.86 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 4.23 ▲0.01 | 96.17 ▼5.06 | 49.21 ▲4.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-store-vacation/src/Vendor/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
- > PHP Fatal error
Uncaught Error: Class 'Woo_Store_Vacation\\Shortcode\\Shortcode' not found in wp-content/plugins/woo-store-vacation/src/Shortcode/Notice.php:17
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/woo-store-vacation/src/Integration/Elementor/Widget.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-store-vacation/src/Vendor/Pimple/Tests/PimpleTest.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Woo_Store_Vacation\\Vendor\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/woo-store-vacation/src/Vendor/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/woo-store-vacation/src/Vendor/Pimple/Exception/FrozenServiceException.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-store-vacation/src/Vendor/Pimple/Tests/ServiceIteratorTest.php:34
- > PHP Fatal error
Uncaught Error: Class 'Woo_Store_Vacation\\Settings\\Sections\\Section' not found in wp-content/plugins/woo-store-vacation/src/Settings/Sections/General.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Woo_Store_Vacation\\Vendor\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/woo-store-vacation/src/PluginServiceProvider.php:17
- > PHP Fatal error
Uncaught Error: Class 'Woo_Store_Vacation\\Ajax\\Ajax' not found in wp-content/plugins/woo-store-vacation/src/Ajax/Rate.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #9 in woo-store-vacation/assets to your readme.txt
woo-store-vacation/woo-store-vacation.php Passed 13 tests
"Woo Store Vacation" version 1.9.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Pause your store during vacations by scheduling specific dates and display a customizable notice to visitors.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,991 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 1,005 | 3,174 | 3,385 |
CSS | 6 | 43 | 6 | 220 |
JavaScript | 8 | 39 | 51 | 220 |
JSON | 1 | 0 | 0 | 133 |
SVG | 2 | 0 | 0 | 24 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 7 | 12.07% |
▷ Concrete classes | 51 | 87.93% |
▷ Final classes | 2 | 3.92% |
Methods | 271 | |
▷ Static methods | 29 | 10.70% |
▷ Public methods | 234 | 86.35% |
▷ Protected methods | 12 | 4.43% |
▷ Private methods | 25 | 9.23% |
Functions | 60 | |
▷ Named functions | 2 | 3.33% |
▷ Anonymous functions | 58 | 96.67% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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
No PNG files were detected