Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.83MB] [CPU: ▼40.93ms] Passed 4 tests
This is a short check of server-side resources used by NS Booking Calendar Agenda
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.16 ▼0.31 | 17.10 ▼22.94 |
Dashboard /wp-admin | 3.20 ▼0.15 | 20.32 ▼46.16 |
Posts /wp-admin/edit.php | 3.20 ▼0.16 | 20.13 ▼21.90 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 20.09 ▼72.72 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 22.60 ▼8.85 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.20 | 18.30 |
Add New /wp-admin/post-new.php?post_type=ns_agenda | 3.20 | 28.05 |
Agenda /wp-admin/edit.php?post_type=ns_agenda | 3.20 | 19.68 |
/wp-admin/admin.php?page=plugineye222 | 3.20 | 22.16 |
Booking Agenda /wp-admin/admin.php?page=ns-booking-agenda/ns-admin-options-pro/ns_admin_option_dashboard.php | 3.20 | 18.93 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
ns_agenda_is_hourly |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NS Booking Calendar Agenda
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲235 | 13.65 ▼1.08 | 11.42 ▲9.74 | 43.09 ▼0.66 |
Dashboard /wp-admin | 2,258 ▲78 | 5.69 ▼0.00 | 87.26 ▼0.53 | 70.87 ▲29.53 |
Posts /wp-admin/edit.php | 2,172 ▲72 | 2.24 ▲0.24 | 33.49 ▼3.18 | 31.47 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,748 ▲219 | 22.26 ▼0.77 | 720.30 ▲127.47 | 65.06 ▲16.90 |
Media Library /wp-admin/upload.php | 1,469 ▲75 | 4.25 ▼0.03 | 101.41 ▲5.79 | 75.48 ▲34.36 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3,018 | 13.05 | 438.76 | 189.56 |
Add New /wp-admin/post-new.php?post_type=ns_agenda | 1,646 | 2.67 | 48.60 | 53.94 |
Agenda /wp-admin/edit.php?post_type=ns_agenda | 1,240 | 2.18 | 32.23 | 30.67 |
/wp-admin/admin.php?page=plugineye222 | 963 | 1.84 | 26.83 | 26.05 |
Booking Agenda /wp-admin/admin.php?page=ns-booking-agenda/ns-admin-options-pro/ns_admin_option_dashboard.php | 1,007 | 1.84 | 23.28 | 29.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ns-booking-agenda/ns-admin-options-pro/ns_admin_option_dashboard.php
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- > GET request to /wp-admin/edit.php?post_type=ns_agenda
- > Notice in wp-content/plugins/ns-booking-agenda/ns-agenda-custom-post.php+231
Undefined variable: colunns
- > GET request to /wp-admin/edit.php?post_type=ns_agenda
- > Notice in wp-content/plugins/ns-booking-agenda/ns-agenda-custom-post.php+231
Trying to access array offset on value of type null
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 take a closer look at the following
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-booking-agenda/ns-agenda-option-struct.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-booking-agenda/outlook-integration/async-outlook-export.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ns-booking-agenda/ns-agenda-calendar-available-template-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-booking-agenda/outlook-integration/async-outlook-import.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-booking-agenda/ns-agenda-custom-post.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ns-booking-agenda/calendar-template-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-booking-agenda/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ns-booking-agenda/single-agenda.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ns-booking-agenda/ns-agenda-product-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-booking-agenda/ns-agenda-ajax-functions.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > Deprecation (warning) in unknown
https://www.nsthemes.com/wp-content/themes/flatsome/assets/js/flatsome.js?ver=295a0d1d1e8168b25a51f884bffa7b33 0 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (View booking agenda.), #2 (View single day booking agenda.), #3 (Settings Ns Booking Agenda.), #4 (Single product bookable.)
ns-booking-agenda/ns-agenda-page.php 92% from 13 tests
The entry point to "NS Booking Calendar Agenda" version 1.3.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ns-booking-agenda.php" instead of "ns-agenda-page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,061 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 570 | 504 | 2,904 |
CSS | 4 | 108 | 34 | 833 |
JavaScript | 5 | 66 | 120 | 324 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 28.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 71.88% |
Functions | 75 | |
▷ Named functions | 64 | 85.33% |
▷ Anonymous functions | 11 | 14.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.44MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/large-exclamation-mark-default.png | 1.27KB | 1.02KB | ▼ 19.68% |
img/check-symbol.png | 0.77KB | 0.53KB | ▼ 31.53% |
screenshot-4.png | 50.68KB | 13.52KB | ▼ 73.32% |
ns-admin-options-pro/img/example1.PNG | 122.71KB | 48.14KB | ▼ 60.77% |
ns-admin-options-pro/img/example2.PNG | 89.30KB | 38.53KB | ▼ 56.85% |