Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼8.19ms] Passed 4 tests
Analyzing server-side resources used by Availability Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 44.40 ▲7.77 |
Dashboard /wp-admin | 3.96 ▲0.61 | 49.97 ▼14.74 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 45.72 ▼1.29 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 81.13 ▼22.12 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 37.30 ▲5.41 |
Category /wp-admin/admin.php?page=owaccategorylist | 3.76 | 35.03 |
Settings /wp-admin/admin.php?page=settings | 3.76 | 31.40 |
Category Add /wp-admin/admin.php?page=owaccategory | 3.75 | 30.67 |
Availability Calendar /wp-admin/admin.php?page=availabilitycalendar | 3.76 | 31.45 |
Availability Add /wp-admin/admin.php?page=availabilityadd | 3.75 | 32.64 |
Server storage [IO: ▲8.80MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_OWAC_event |
wp_OWAC_category |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
OWAC_settings_option |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Availability Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲160 | 13.80 ▼0.55 | 9.65 ▲7.90 | 47.88 ▲7.43 |
Dashboard /wp-admin | 2,243 ▲66 | 5.65 ▲0.03 | 86.81 ▼1.17 | 37.68 ▼3.05 |
Posts /wp-admin/edit.php | 2,145 ▲48 | 2.07 ▲0.08 | 35.67 ▲1.37 | 33.68 ▼4.79 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 18.40 ▼4.89 | 607.99 ▼47.40 | 68.67 ▲15.79 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.29 ▲0.04 | 100.64 ▼4.98 | 40.99 ▼4.80 |
Category /wp-admin/admin.php?page=owaccategorylist | 1,015 | 1.72 | 26.35 | 28.12 |
Settings /wp-admin/admin.php?page=settings | 1,251 | 1.77 | 28.91 | 28.15 |
Category Add /wp-admin/admin.php?page=owaccategory | 850 | 1.76 | 24.77 | 22.89 |
Availability Calendar /wp-admin/admin.php?page=availabilitycalendar | 1,028 | 1.72 | 24.00 | 25.41 |
Availability Add /wp-admin/admin.php?page=availabilityadd | 1,198 | 1.82 | 30.84 | 23.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/availability-calendar/admin/includes/owac-category-add.php:135
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/availability-calendar/admin/class/owac-category-list-table-trash.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/availability-calendar/admin/includes/owac-settings.php:408
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/availability-calendar/public/includes/frontend.php:7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/availability-calendar/admin/class/owac-category-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/availability-calendar/admin/includes/owac-add.php:176
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/availability-calendar/admin/class/owac-list-table.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/availability-calendar/admin/class/owac-category-list-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/availability-calendar/admin/class/owac-list-table-trash.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/availability-calendar/admin/class/owac-list-table-trash.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: event, availability calendar, working days, holiday, personal calendar
availability-calendar/availabilitycalendar.php 92% from 13 tests
The principal PHP file in "Availability Calendar" v. 1.2.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("availability-calendar.php" instead of "availabilitycalendar.php")
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
Everything looks great! No dangerous files found in this plugin28,476 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 4 | 16,153 |
JavaScript | 5 | 749 | 459 | 8,557 |
PHP | 22 | 797 | 178 | 2,945 |
CSS | 5 | 4 | 53 | 821 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 6 | 3.82% |
▷ Public methods | 135 | 85.99% |
▷ Protected methods | 16 | 10.19% |
▷ Private methods | 6 | 3.82% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG files were detected