Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.20ms] Passed 4 tests
Analyzing server-side resources used by BookServe Online Booking Calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.32 ▼4.86 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.86 ▲1.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.15 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.56 ▼9.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.33 ▲3.25 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for BookServe Online Booking Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.44 | 1.66 ▼0.10 | 47.13 ▲2.06 |
Dashboard /wp-admin | 2,195 ▲21 | 5.57 ▼0.15 | 85.01 ▼13.41 | 36.68 ▼9.53 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.12 ▲0.12 | 39.39 ▲2.65 | 36.82 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.83 ▼0.02 | 606.59 ▼14.33 | 83.33 ▲19.28 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.04 | 100.97 ▲3.56 | 45.28 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/book-serve-reservations/book_serve_booking_form/booking_form.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/book-serve-reservations/vm_wordpress_widget.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function vmbf_option() in wp-content/plugins/book-serve-reservations/config.php:3
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% 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
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== book-serve-reservations ===
) - Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please a description for screenshot #10 in book-serve-reservations/assets to your readme.txt
book-serve-reservations/vm_wordpress_widget.php 77% from 13 tests
"BookServe Online Booking Calendar" version 3.2RC...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.6" instead of "6.0")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "3.2RC...")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("book-serve-reservations.php" instead of "vm_wordpress_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin837 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 355 | 55 | 552 |
CSS | 1 | 74 | 0 | 158 |
JavaScript | 1 | 84 | 11 | 126 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.50MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
book_serve_booking_form/unselected_dot_functional.png | 0.72KB | 0.31KB | ▼ 56.97% |
assets/banner-1544x500.png | 339.87KB | 127.20KB | ▼ 62.57% |
book_serve_booking_form/green_dot.png | 0.81KB | 0.60KB | ▼ 26.03% |
assets/banner-772x250.png | 118.04KB | 40.08KB | ▼ 66.05% |
book_serve_booking_form/unselected_dot.png | 0.72KB | 0.31KB | ▼ 56.97% |