Benchmarks
Plugin footprint Passed 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.04MB] [CPU: ▼141.44ms] Passed 4 tests
Server-side resources used by Call&Book Mobile Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 29.17 ▲4.24 |
Dashboard /wp-admin | 3.11 ▲0.05 | 32.24 ▼3.02 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 29.89 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 72.73 ▼562.48 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 24.60 ▲0.45 |
Call & Book Mobile Bar /wp-admin/options-general.php?page=cb_settings | 3.06 | 25.43 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Call&Book Mobile Bar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,860 ▲259 | 16.08 ▲0.10 | 9.11 ▲4.22 | 75.55 ▲2.00 |
Dashboard /wp-admin | 2,940 ▲45 | 6.10 ▼0.09 | 116.81 ▼23.02 | 167.49 ▼16.03 |
Posts /wp-admin/edit.php | 2,750 ▲7 | 3.24 ▲0.01 | 63.82 ▼0.19 | 138.42 ▼0.56 |
Add New Post /wp-admin/post-new.php | 3,743 ▲8 | 20.64 ▲1.94 | 437.70 ▼9.07 | 158.13 ▼8.96 |
Media Library /wp-admin/upload.php | 1,762 ▲10 | 5.53 ▼0.01 | 145.48 ▲4.38 | 184.29 ▲0.95 |
Call & Book Mobile Bar /wp-admin/options-general.php?page=cb_settings | 5,167 | 3.67 | 97.36 | 144.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=cb_settings
- > Network (severe)
http://fonts.googleapis.com/css?family= - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: hotel booking, hotel, call, booking, booking engine...
callbook-mobile-bar/call-and-book.php 85% from 13 tests
This is the main PHP file of "Call&Book Mobile Bar" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 388 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("callbook-mobile-bar.php" instead of "call-and-book.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected685 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 129 | 78 | 407 |
CSS | 2 | 32 | 1 | 162 |
PO File | 1 | 42 | 51 | 96 |
SVG | 1 | 0 | 0 | 18 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin