Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/shop-calendar/shop-calendar.php+29
Function create_function() is deprecated
Server metrics [RAM: ▼1.41MB] [CPU: ▼61.49ms] Passed 4 tests
An overview of server-side resources used by Shop Calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.59 ▼0.88 | 8.07 ▼39.69 |
Dashboard /wp-admin | 2.61 ▼0.74 | 8.96 ▼58.34 |
Posts /wp-admin/edit.php | 2.61 ▼0.75 | 8.44 ▼45.03 |
Add New Post /wp-admin/post-new.php | 2.61 ▼3.28 | 8.97 ▼102.91 |
Media Library /wp-admin/upload.php | 2.61 ▼0.62 | 6.86 ▼27.45 |
Shop Calendar設定 /wp-admin/options-general.php?page=shop_calendar | 2.61 | 8.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_shopcalendar |
db_upgraded |
shop_calendar |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Shop Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲24 | 14.34 ▼0.22 | 1.72 ▼0.07 | 44.22 ▲4.12 |
Dashboard /wp-admin | 2,199 ▲25 | 5.65 ▲0.06 | 84.80 ▼3.95 | 41.12 ▼5.00 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▲0.01 | 34.57 ▼9.10 | 38.62 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.87 ▼0.17 | 682.28 ▲8.59 | 57.02 ▼3.07 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.01 | 94.40 ▼16.71 | 45.54 ▼1.08 |
Shop Calendar設定 /wp-admin/options-general.php?page=shop_calendar | 3,529 | 2.02 | 25.65 | 67.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/shop-calendar/shop-calendar.php+29
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_shopcalendar
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=shop_calendar
- > Deprecated in wp-content/plugins/shop-calendar/shop-calendar.php+29
Function create_function() is deprecated
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/shop-calendar/shop-calendar.php:23
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: widget, calendar
shop-calendar/shop-calendar.php Passed 13 tests
The primary PHP file in "Shop Calendar" version 1.7.1 is used by WordPress to initiate all plugin functionality
102 characters long description:
店舗向けのカレンダーで、店休日をウェジットに表示するプラグインです。
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,529 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 124 | 50 | 1,484 |
CSS | 1 | 1 | 0 | 45 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 169.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 335.00 |
Average method complexity | 11.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.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 | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin