Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/inn-style-widget/inn-style-widget.php+402
Methods with the same name as their class will not be constructors in a future version of PHP; INNSTYLE_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼47.97ms] Passed 4 tests
Server-side resources used by Inn Style Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 11.40 ▼25.39 |
Dashboard /wp-admin | 2.30 ▼1.01 | 9.43 ▼40.42 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 12.27 ▼41.99 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 15.28 ▼82.49 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 10.24 ▼26.97 |
InnStyle Import /wp-admin/tools.php?page=innstyle-bookables | 2.30 | 11.89 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_inn-style-widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Inn Style Widget: 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,818 ▲72 | 13.27 ▼0.92 | 4.52 ▲2.69 | 46.12 ▼0.02 |
Dashboard /wp-admin | 2,221 ▲36 | 5.87 ▼0.12 | 111.44 ▼38.86 | 42.73 ▼27.34 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.13 | 47.27 ▲7.08 | 33.45 ▼10.96 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.11 ▲0.01 | 724.30 ▲27.94 | 58.77 ▲5.90 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.18 ▼0.02 | 114.32 ▲2.22 | 46.81 ▼10.71 |
InnStyle Import /wp-admin/tools.php?page=innstyle-bookables | 782 | 2.05 | 26.78 | 25.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in INNSTYLE_Widget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_inn-style-widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in INNSTYLE_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > Notice in wp-content/plugins/inn-style-widget/inn-style-widget.php+169
Trying to access array offset on value of type int
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > Notice in wp-content/plugins/inn-style-widget/inn-style-widget.php+179
Trying to get property 'images' of non-object
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > Notice in wp-content/plugins/inn-style-widget/inn-style-widget.php+180
Trying to get property 'bookables' of non-object
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > Warning in wp-content/plugins/inn-style-widget/inn-style-widget.php+261
count(): Parameter must be an array or an object that implements Countable
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inn-style-widget/inn-style-widget.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=innstyle-bookables
- > Network (severe)
wp-content/themes/twentytwentyone/images/cpt-icons/mask.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== inn-style-widget ===
)
inn-style-widget/inn-style-widget.php Passed 13 tests
The entry point to "Inn Style Widget" version 0.5 is a PHP file that has certain tags in its header comment area
104 characters long description:
Inn Style Widget for showing availabilities, calendar and bookables (rooms) on your hotel or B&B website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 17 | 28 | 683 |
PHP | 1 | 101 | 69 | 423 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin