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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.16ms] Passed 4 tests
A check of server-side resources used by Freetobook Responsive Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.45 ▼1.40 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.16 ▼2.37 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.63 ▼3.63 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.46 ▼12.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.10 ▼2.56 |
Freetobook Responsive Widget /wp-admin/options-general.php?page=freetobook-responsive-widget/includes/ftb-widget-admin-settings.php | 3.23 | 30.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_ftb_widget |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Freetobook Responsive Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 14.71 ▲0.32 | 21.28 ▲19.59 | 38.85 ▼4.16 |
Dashboard /wp-admin | 2,210 ▲25 | 5.82 ▲0.94 | 109.22 ▲4.02 | 39.62 ▼5.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.02 | 35.15 ▼3.72 | 32.38 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.24 ▲5.72 | 697.02 ▲25.51 | 58.79 ▲4.82 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.03 | 100.83 ▼17.18 | 44.09 ▼0.01 |
Freetobook Responsive Widget /wp-admin/options-general.php?page=freetobook-responsive-widget/includes/ftb-widget-admin-settings.php | 815 | 2.02 | 28.72 | 25.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_ftb_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- 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 | 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: Class 'WP_Widget' not found in wp-content/plugins/freetobook-responsive-widget/includes/ftb-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: online booking, pms, web booking, booking button, booking engine...
freetobook-responsive-widget/freetobook-responsive-widget.php Passed 13 tests
"Freetobook Responsive Widget" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Add freetobook responsive widget to your wordpress site.
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
Good job! No executable or dangerous file extensions detected149 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 17 | 149 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 33.33% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin