Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.66ms] Passed 4 tests
Server-side resources used by WaiterAid Booking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.54 ▼7.44 |
Dashboard /wp-admin | 3.49 ▲0.18 | 47.72 ▼0.04 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 46.47 ▼8.22 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 87.17 ▼6.92 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.94 ▲4.67 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
waiteraid_options |
widget_waiteraid_sidebar_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WaiterAid Booking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.25 ▲0.04 | 3.11 ▲1.51 | 41.61 ▼5.61 |
Dashboard /wp-admin | 2,217 ▲37 | 5.60 ▼0.07 | 83.49 ▼17.61 | 37.02 ▼12.28 |
Posts /wp-admin/edit.php | 2,098 ▼7 | 1.98 ▲0.02 | 35.63 ▼8.70 | 32.37 ▼6.24 |
Add New Post /wp-admin/post-new.php | 6,207 ▲4,676 | 18.97 ▼4.22 | 856.52 ▲243.27 | 95.90 ▲16.39 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.20 ▲0.01 | 98.41 ▼3.81 | 40.48 ▼4.27 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_waiteraid_sidebar_widget
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Donate link: Invalid url: "N/A"
waiteraid-booking/waiteraid-booking.php Passed 13 tests
The main PHP script in "WaiterAid Booking" version 1.1 is automatically included on every request by WordPress
17 characters long description:
WaiterAid Booking
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,569 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 338 | 558 | 1,730 |
JavaScript | 6 | 99 | 148 | 635 |
CSS | 2 | 38 | 12 | 204 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 36 | 83.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 16.28% |
Functions | 1 | |
▷ Named functions | 1 | 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
There were not PNG files found in your plugin