Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.71ms] Passed 4 tests
A check of server-side resources used by Experience & Activities Booking System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.78 ▼4.45 |
Dashboard /wp-admin | 3.51 ▲0.20 | 46.20 ▼0.48 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 51.58 ▼2.48 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.99 ▼6.97 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.94 ▼0.95 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
_eabs_shortcode_checkout_page |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
_eabs_shortcode_cart_page |
Browser metrics Passed 4 tests
A check of browser resources used by Experience & Activities Booking System
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲181 | 13.60 ▼0.78 | 7.67 ▲5.89 | 38.77 ▼12.48 |
Dashboard /wp-admin | 2,225 ▲34 | 4.81 ▼1.10 | 95.26 ▼20.29 | 36.95 ▼15.05 |
Posts /wp-admin/edit.php | 2,105 ▲34 | 2.02 ▲0.00 | 39.51 ▲3.83 | 36.36 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 18.62 ▲0.86 | 594.02 ▼90.08 | 61.50 ▲5.40 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.28 ▲0.02 | 97.01 ▼17.46 | 42.66 ▼7.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- _eabs_shortcode_cart_page
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- _eabs_shortcode_checkout_page
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant EABS_PATH - assumed 'EABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/experience-activities-booking-system/includes/eabs-init.php on line 2
- > PHP Notice
Undefined variable: template_data in wp-content/plugins/experience-activities-booking-system/templates/frontend/template-single_activity.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/experience-activities-booking-system/includes/functions.php:124
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/experience-activities-booking-system/templates/frontend/template-cart.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/experience-activities-booking-system/templates/backend/eabs-general-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experience-activities-booking-system/includes/classes/eabs.class-cart.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/experience-activities-booking-system/templates/frontend/template-activity_calendor.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experience-activities-booking-system/includes/classes/eabs.class-view.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/experience-activities-booking-system/experience-activities-booking-system.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/experience-activities-booking-system/includes/classes/eabs.class-init.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Experience & Activities Booking System WordPress administration screen) image not found
experience-activities-booking-system/experience-activities-booking-system.php Passed 13 tests
The main PHP file in "Experience & Activities Booking System" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Using shortcode you can display activity on any page or post.
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
There were no executable files found in this plugin3,936 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 243 | 38 | 2,077 |
PO File | 7 | 868 | 867 | 1,859 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 37.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 6.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin