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
- Install procedure had errors
- > Warning in wp-content/plugins/netbookings-shortcodes/general/netbookings-xml-data.php+47
simplexml_load_file(): I/O warning : failed to load external entity "xml/package categories export.xml"
Server metrics [RAM: ▼1.81MB] [CPU: ▼53.50ms] Passed 4 tests
Server-side resources used by Netbookings Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.32 ▼33.90 |
Dashboard /wp-admin | 2.20 ▼1.10 | 7.15 ▼45.29 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 8.65 ▼42.45 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 8.06 ▼92.35 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 7.36 ▼23.84 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Netbookings Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.25 ▼0.04 | 1.75 ▲0.11 | 40.45 ▼0.76 |
Dashboard /wp-admin | 2,216 ▲42 | 5.55 ▼0.05 | 88.43 ▼4.70 | 64.39 ▲25.04 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.97 ▼0.04 | 39.46 ▼1.44 | 35.23 ▼4.38 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 18.24 ▼5.31 | 760.15 ▲67.67 | 58.64 ▲5.34 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.25 ▲0.08 | 115.92 ▲8.75 | 83.52 ▲38.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/netbookings-shortcodes/general/netbookings-xml-data.php+47
simplexml_load_file(): I/O warning : failed to load external entity "xml/package categories export.xml"
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php
- > /wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/packages.php
- 44× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'SERVICES_NAME' of non-object in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 12
- > PHP Notice
Undefined variable: package in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/packages.php on line 22
- > PHP Notice
Trying to get property 'SERVICES_NAME' of non-object in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 15
- > PHP Warning
require_once(ABSPATHwp-includes/option.php): failed to open stream: No such file or directory in wp-content/plugins/netbookings-shortcodes/netbookings-shortcodes.php on line 11
- > PHP Notice
Trying to get property 'GROUPPACKAGES_GROUP' of non-object in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/packages.php on line 51
- > PHP Notice
Trying to get property 'SERVICES_IMAGE' of non-object in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 12
- > PHP Notice
Undefined variable: service in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 12
- > PHP Notice
Undefined variable: truncate in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 35
- > PHP Notice
Undefined variable: service in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 61
- > PHP Notice
Undefined variable: service in wp-content/plugins/netbookings-shortcodes/package-service-cards/templates/services.php on line 43
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #3 (Present your bathing availability on your website.) image required
netbookings-shortcodes/netbookings-shortcodes.php Passed 13 tests
The principal PHP file in "Netbookings Shortcodes" v. 2.0.4 is loaded by WordPress automatically on each request
68 characters long description:
Shortcodes for inserting Netbookings packages, services and widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin15,717 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,930 |
JavaScript | 9 | 258 | 456 | 996 |
PHP | 9 | 232 | 197 | 848 |
Sass | 6 | 111 | 5 | 657 |
CSS | 8 | 46 | 3 | 230 |
Markdown | 2 | 13 | 0 | 40 |
YAML | 1 | 4 | 9 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.86 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
general/assets/icon-128x128.png | 0.36KB | 0.13KB | ▼ 65.50% |
general/assets/icon.png | 15.62KB | 0.87KB | ▼ 94.46% |
general/assets/icon-256x256.png | 0.67KB | 0.15KB | ▼ 77.71% |