Benchmarks
Plugin footprint 65% 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.44MB] [CPU: ▼5.98ms] Passed 4 tests
Server-side resources used by
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.48 | 48.80 ▲1.04 |
Dashboard /wp-admin | 4.03 ▲0.40 | 55.19 ▼11.29 |
Posts /wp-admin/edit.php | 4.08 ▲0.40 | 57.28 ▲5.11 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.49 | 89.39 ▼18.76 |
Media Library /wp-admin/upload.php | 3.95 ▲0.46 | 47.20 ▲8.70 |
Add New /wp-admin/post-new.php?post_type=location | 4.10 | 63.75 |
Locations /wp-admin/edit.php?post_type=location | 3.99 | 47.57 |
Location Type /wp-admin/edit-tags.php?taxonomy=location-type&post_type=location | 3.95 | 40.61 |
Business Places /wp-admin/options-general.php?page=tsoh | 3.96 | 42.51 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 68 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ts_open_hour |
New WordPress options |
---|
widget_tsoh-site-open-hour |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_tsoh-site-location |
tsoh_db_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 13.32 ▼0.91 | 1.71 ▼0.04 | 37.84 ▼3.34 |
Dashboard /wp-admin | 2,244 ▲64 | 5.82 ▲0.19 | 95.27 ▲0.02 | 37.89 ▼2.83 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 2.30 ▲0.28 | 39.45 ▼0.39 | 37.97 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,569 ▲14 | 23.60 ▲5.55 | 742.76 ▲32.72 | 58.12 ▼5.69 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.49 ▲0.26 | 99.60 ▼6.65 | 44.87 ▼5.86 |
Add New /wp-admin/post-new.php?post_type=location | 2,779 | 8.08 | 193.90 | 81.96 |
Locations /wp-admin/edit.php?post_type=location | 1,126 | 2.26 | 32.18 | 31.37 |
Location Type /wp-admin/edit-tags.php?taxonomy=location-type&post_type=location | 1,328 | 2.11 | 29.43 | 34.47 |
Business Places /wp-admin/options-general.php?page=tsoh | 1,065 | 1.87 | 25.95 | 32.64 |
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
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_ts_open_hour
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_recent-comments
- widget_tsoh-site-open-hour
- tsoh_db_version
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_tsoh-site-location
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/Pattern/AbstractWidget.php:12
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Pattern\\Singleton' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/Formatter.php:13
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Pattern\\AbstractMetaBox' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/MetaBoxes/OpenHourMetaBox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/taro-open-hour/templates/time-table.php:17
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Places' not found in wp-content/plugins/taro-open-hour/templates/setting.php:4
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Pattern\\AbstractWidget' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/Widgets/SiteOpenHour.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/taro-open-hour/includes/shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Pattern\\AbstractMetaBox' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/MetaBoxes/LocationMetaBox.php:13
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Pattern\\AbstractRest' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/Rest/PlaceApi.php:8
- > PHP Fatal error
Uncaught Error: Class 'Tarosky\\OpenHour\\Pattern\\Singleton' not found in wp-content/plugins/taro-open-hour/app/Tarosky/OpenHour/Model.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: widget, business, place, open-hour
taro-open-hour/taro-open-hour.php Passed 13 tests
The primary PHP file in "" version 2.2.1 is used by WordPress to initiate all plugin functionality
41 characters long description:
Add place and open hour to any post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin18,227 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 14,976 |
PHP | 35 | 428 | 1,112 | 2,544 |
JavaScript | 10 | 30 | 55 | 322 |
PO File | 1 | 110 | 150 | 244 |
Sass | 5 | 19 | 0 | 138 |
CSS | 3 | 2 | 2 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 20 | |
▷ Abstract classes | 4 | 20.00% |
▷ Concrete classes | 16 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 21 | 14.69% |
▷ Public methods | 98 | 68.53% |
▷ Protected methods | 41 | 28.67% |
▷ Private methods | 4 | 2.80% |
Functions | 34 | |
▷ Named functions | 19 | 55.88% |
▷ Anonymous functions | 15 | 44.12% |
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
No PNG files were detected