Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼191.64ms] Passed 4 tests
An overview of server-side resources used by Resourcexec - Resource Booking Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 22.65 ▼8.27 |
Dashboard /wp-admin | 2.99 ▼0.06 | 22.30 ▼38.75 |
Posts /wp-admin/edit.php | 2.99 ▼0.11 | 26.52 ▼25.56 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.44 | 20.68 ▼676.01 |
Media Library /wp-admin/upload.php | 2.99 ▼0.01 | 17.83 ▼26.25 |
Agenda /wp-admin/admin.php?page=hcrb&hca=agenda | 2.99 | 18.36 |
Settings /wp-admin/admin.php?page=hcrb&hca=conf | 2.99 | 18.55 |
Reports /wp-admin/admin.php?page=hcrb&hca=reports | 2.99 | 17.98 |
Resources /wp-admin/admin.php?page=hcrb&hca=resources | 2.99 | 19.54 |
Calendar /wp-admin/admin.php?page=hcrb&hca=calendar | 2.99 | 20.20 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 388 new files
Database: 5 new tables, no new options
New tables |
---|
wp_hcrb_v1_bookings |
wp_hcrb_v1_conf |
wp_hcrb_v1_resources |
wp_hcrb_v1_migrations |
wp_hcrb_v1_relations |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Resourcexec - Resource Booking Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲185 | 15.64 ▲0.45 | 11.49 ▼0.74 | 56.83 ▼15.42 |
Dashboard /wp-admin | 3,019 ▲66 | 5.89 ▼0.05 | 189.79 ▲9.58 | 156.71 ▲8.67 |
Posts /wp-admin/edit.php | 2,786 ▲47 | 2.58 ▼0.10 | 78.60 ▼17.44 | 113.72 ▲5.43 |
Add New Post /wp-admin/post-new.php | 1,723 ▲108 | 14.70 ▼6.15 | 391.93 ▼66.13 | 115.55 ▼27.47 |
Media Library /wp-admin/upload.php | 1,794 ▼13 | 5.03 ▼0.01 | 175.43 ▼16.78 | 162.80 ▼0.83 |
Agenda /wp-admin/admin.php?page=hcrb&hca=agenda | 994 | 1.85 | 41.12 | 58.01 |
Settings /wp-admin/admin.php?page=hcrb&hca=conf | 1,035 | 1.86 | 34.38 | 51.22 |
Reports /wp-admin/admin.php?page=hcrb&hca=reports | 1,026 | 2.11 | 41.16 | 67.13 |
Resources /wp-admin/admin.php?page=hcrb&hca=resources | 961 | 2.11 | 53.78 | 65.07 |
Calendar /wp-admin/admin.php?page=hcrb&hca=calendar | 1,106 | 2.11 | 35.52 | 46.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/resourcexec/happ2/hsystem/parts/profiler.php+121
Array and string offset access syntax with curly braces is deprecated
- Zombie tables were found after uninstall: 5 tables
- wp_hcrb_v1_resources
- wp_hcrb_v1_migrations
- wp_hcrb_v1_bookings
- wp_hcrb_v1_conf
- wp_hcrb_v1_relations
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Deprecated in wp-content/plugins/resourcexec/happ2/hsystem/parts/profiler.php+595
Array and string offset access syntax with curly braces is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Warning in wp-content/plugins/resourcexec/happ2/hsystem/parts/orm/storable_wp_custom_post.php+60
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Warning in wp-content/plugins/resourcexec/happ2/modules/session/lib.php+86
session_start(): Cannot start session when headers already sent
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Warning in wp-content/plugins/resourcexec/happ2/modules/session/lib.php+630
Cannot modify header information - headers already sent by (output started at wp-admin/includes/misc.php:1281)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Notice in wp-content/plugins/resourcexec/happ2/modules/session/lib.php+347
Undefined variable: _SESSION
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Warning in wp-content/plugins/resourcexec/happ2/modules/session/lib.php+347
Invalid argument supplied for foreach()
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=reports
- > Warning in wp-content/plugins/resourcexec/happ2/hsystem/parts/orm/relations.php+105
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=resources
- > Deprecated in wp-content/plugins/resourcexec/happ2/modules/html/view_sorted_table.php+127
Function create_function() is deprecated
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/resourcexec/happ2/hsystem/parts/orm/storable_wp_custom_post.php on line 60
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Network (severe)
wp-content/plugins/happ2/assets/css/hc-wp.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Network (severe)
wp-content/plugins/happ2/assets/js/hc2.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hcrb&hca=calendar
- > Network (severe)
wp-content/plugins/happ2/assets/js/hc-datepicker2.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
resourcexec/resourcexec.php Passed 13 tests
The principal PHP file in "Resourcexec - Resource Booking Plugin" v. 1.0.2 is loaded by WordPress automatically on each request
82 characters long description:
Resource booking, resource scheduling, staff management, employee planning plugin.
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 detected28,808 lines of code in 369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 363 | 5,047 | 6,206 | 26,517 |
JavaScript | 2 | 211 | 138 | 2,092 |
Markdown | 2 | 65 | 0 | 141 |
CSS | 2 | 9 | 13 | 58 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 252.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 332 | |
▷ Abstract classes | 12 | 3.61% |
▷ Concrete classes | 320 | 96.39% |
▷ Final classes | 0 | 0.00% |
Methods | 1,544 | |
▷ Static methods | 46 | 2.98% |
▷ Public methods | 1,387 | 89.83% |
▷ Protected methods | 130 | 8.42% |
▷ Private methods | 27 | 1.75% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
No PNG files were detected