Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.49MB] [CPU: ▲2.03ms] Passed 4 tests
Analyzing server-side resources used by Reservation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 53.57 ▲11.25 |
Dashboard /wp-admin | 3.54 ▲0.24 | 718.22 ▲664.51 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 53.35 ▲5.17 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.67 | 81.23 ▼14.92 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 42.00 ▲6.61 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Reservation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲164 | 14.57 ▲0.42 | 19.71 ▲17.70 | 44.02 ▲0.25 |
Dashboard /wp-admin | 2,234 ▲57 | 4.97 ▼0.61 | 91.44 ▼4.88 | 52.42 ▲2.99 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 2.11 ▲0.18 | 35.05 ▼2.44 | 42.76 ▲6.02 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 22.16 ▼0.87 | 606.55 ▼84.78 | 44.56 ▼17.25 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.55 ▲0.36 | 100.67 ▼4.31 | 53.21 ▲8.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reservation/admin/setting/term_editor.php
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/vehicle.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/country.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/vicheleList.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/reserve.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/reservation/css/responsive.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/reservation/admin/check.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/location.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/login.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/summary.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reservation/include/createReservation.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== reservation ===
) - Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in reservation/assets to your readme.txt
reservation/reservation.php 77% from 13 tests
This is the main PHP file of "Reservation" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- Description: The description should be shorter than 140 characters (currently 168 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected8,712 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 1,007 | 227 | 5,242 |
JavaScript | 5 | 438 | 89 | 2,377 |
SVG | 1 | 0 | 0 | 655 |
CSS | 3 | 51 | 10 | 413 |
JSON | 1 | 0 | 0 | 16 |
Markdown | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.75 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 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 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.70MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 176.79KB | 57.24KB | ▼ 67.62% |
images/2.png | 11.99KB | 5.74KB | ▼ 52.16% |
screenshot/1.PNG | 34.31KB | 15.83KB | ▼ 53.85% |
screenshot/2.PNG | 35.28KB | 17.95KB | ▼ 49.11% |
screenshot/6.PNG | 31.97KB | 16.00KB | ▼ 49.95% |