Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.79ms] Passed 4 tests
An overview of server-side resources used by Occupancy Plan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.61 ▼8.32 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.14 ▼6.06 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.22 ▲4.88 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 84.05 ▼15.18 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.43 ▼1.61 |
Prepared Booking /wp-admin/admin.php?page=occupancy-plan-prepared-blocks | 3.36 | 37.32 |
New Time Slot /wp-admin/admin.php?page=occupancy-plan-time-slot | 3.36 | 35.15 |
Provisional Bookings /wp-admin/admin.php?page=occupancy-plan-provisional-blocks | 3.36 | 35.25 |
New Court Name /wp-admin/admin.php?page=occupancy-plan-court-name | 3.37 | 32.69 |
Bookings /wp-admin/admin.php?page=occupancy-plan-blocks | 3.36 | 35.01 |
New Booking /wp-admin/admin.php?page=occupancy-plan-block | 3.56 | 35.71 |
Time Slots /wp-admin/admin.php?page=occupancy-plan-time-slots | 3.36 | 35.74 |
New Prepared Booking /wp-admin/admin.php?page=occupancy-plan-prepared-block | 3.38 | 33.33 |
Court Names /wp-admin/admin.php?page=occupancy-plan-court-names | 3.36 | 35.24 |
New Occupancy Schedule /wp-admin/admin.php?page=occupancy-plan-plan | 3.57 | 32.18 |
Server storage [IO: ▲0.73MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 58 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_occupancy_plan_court_name |
wp_occupancy_plan_time_slot |
wp_occupancy_plan_block |
wp_occupancy_plan_prepared_block |
wp_occupancy_plan_approval_process |
wp_occupancy_plan |
New WordPress options |
---|
widget_theysaidso_widget |
occupancy_plan_db_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Occupancy Plan
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.62 ▼0.75 | 1.53 ▼0.32 | 40.58 ▼3.88 |
Dashboard /wp-admin | 2,292 ▲107 | 5.38 ▼0.50 | 116.64 ▲16.36 | 44.12 ▲2.82 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.53 ▲0.51 | 40.56 ▲4.67 | 33.78 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,563 ▲20 | 17.92 ▼5.22 | 669.98 ▼1.80 | 35.34 ▼25.18 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.59 ▲0.36 | 89.80 ▼5.55 | 38.09 ▼8.04 |
Prepared Booking /wp-admin/admin.php?page=occupancy-plan-prepared-blocks | 1,140 | 2.18 | 33.38 | 32.68 |
New Time Slot /wp-admin/admin.php?page=occupancy-plan-time-slot | 950 | 2.30 | 27.96 | 23.53 |
Provisional Bookings /wp-admin/admin.php?page=occupancy-plan-provisional-blocks | 1,269 | 2.17 | 28.88 | 29.29 |
New Court Name /wp-admin/admin.php?page=occupancy-plan-court-name | 953 | 2.19 | 27.94 | 26.53 |
Bookings /wp-admin/admin.php?page=occupancy-plan-blocks | 1,294 | 2.19 | 29.17 | 34.36 |
New Booking /wp-admin/admin.php?page=occupancy-plan-block | 1,640 | 2.62 | 49.35 | 29.68 |
Time Slots /wp-admin/admin.php?page=occupancy-plan-time-slots | 1,024 | 2.18 | 28.59 | 27.13 |
New Prepared Booking /wp-admin/admin.php?page=occupancy-plan-prepared-block | 1,170 | 2.63 | 48.72 | 26.74 |
Court Names /wp-admin/admin.php?page=occupancy-plan-court-names | 1,092 | 2.17 | 28.24 | 27.33 |
New Occupancy Schedule /wp-admin/admin.php?page=occupancy-plan-plan | 2,385 | 3.24 | 63.92 | 35.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_occupancy_plan
- wp_occupancy_plan_approval_process
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- occupancy_plan_db_version
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: atts in wp-content/plugins/occupancy-plan/public/partials/occupancy-plan-public-display.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/occupancy-plan/admin/partials/occupancy-plan-plans.php:17
- > 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/occupancy-plan/admin/class-occupancy-plan-court-names.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/occupancy-plan/public/partials/occupancy-plan-public-display.php:25
- > 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/occupancy-plan/admin/class-occupancy-plan-time-slots.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/occupancy-plan/admin/class-occupancy-plan-prepared-blocks.php on line 20
- > 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/occupancy-plan/admin/class-occupancy-plan-prepared-blocks.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/occupancy-plan/admin/partials/occupancy-plan-provisional-blocks.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/occupancy-plan/admin/partials/occupancy-plan-time-slots.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/occupancy-plan/admin/partials/occupancy-plan-prepared-blocks.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: belegungsplan, occupancy plan, hallenbelegung, buchungen, reservierung...
occupancy-plan/occupancy-plan.php Passed 13 tests
The main file in "Occupancy Plan" v. 1.3.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Management of Occupancy Plans
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
Good job! No executable or dangerous file extensions detected10,110 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 790 | 1,851 | 7,703 |
JavaScript | 3 | 187 | 156 | 1,433 |
PO File | 1 | 307 | 767 | 620 |
CSS | 6 | 89 | 72 | 340 |
HTML | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 72.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 303.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 4 | 2.41% |
▷ Public methods | 115 | 69.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 51 | 30.72% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
public/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
admin/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |