Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/resonline-booking-gadget/lib/PhxResOnlineAdmin.php+206
Undefined variable: code_canyon_slug
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.59ms] Passed 4 tests
An overview of server-side resources used by ResOnline Booking Gadget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.00 ▼3.10 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.10 ▼2.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.32 ▲8.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.30 ▲0.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.82 ▲7.57 |
ResOnline /wp-admin/options-general.php?page=phx-resonline-booking-gadget-options | 3.27 | 31.19 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options |
---|
phx-resonline-booking-gadget-columns |
widget_recent-comments |
widget_theysaidso_widget |
phx-resonline-booking-gadget-currency |
widget_recent-posts |
phx-resonline-booking-gadget-layout |
theysaidso_admin_options |
db_upgraded |
phx-resonline-booking-gadget-label |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for ResOnline Booking Gadget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.46 ▼0.97 | 1.55 ▼0.67 | 38.72 ▼11.76 |
Dashboard /wp-admin | 2,231 ▲43 | 5.13 ▼0.77 | 105.43 ▼1.80 | 37.71 ▼4.47 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.32 ▲0.32 | 42.06 ▲4.88 | 33.65 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,691 ▲158 | 22.79 ▼0.69 | 579.25 ▼105.01 | 30.11 ▼24.48 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.42 ▲0.17 | 98.34 ▼7.77 | 43.91 ▼2.09 |
ResOnline /wp-admin/options-general.php?page=phx-resonline-booking-gadget-options | 1,215 | 2.09 | 28.44 | 50.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- phx-resonline-booking-gadget-currency
- widget_recent-comments
- phx-resonline-booking-gadget-show-images
- phx-resonline-booking-gadget-layout
- theysaidso_admin_options
- db_upgraded
- phx-resonline-booking-gadget-columns
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/resonline-booking-gadget/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/resonline-booking-gadget/phx-resonline-booking-gadget.php:36
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #5 (Shortcode options (available from *WordPress Dashboard* => *Settings* => *ResOnline* once the plugin has been installed and activated)) image missing
resonline-booking-gadget/phx-resonline-booking-gadget.php 77% from 13 tests
"ResOnline Booking Gadget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("resonline-booking-gadget.php" instead of "phx-resonline-booking-gadget.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 215 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin551 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 126 | 338 | 549 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin