Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲19.06ms] Passed 4 tests
This is a short check of server-side resources used by Toristy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.15 ▼0.01 |
Dashboard /wp-admin | 3.66 ▲0.35 | 70.68 ▲26.14 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 76.47 ▲29.87 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 120.38 ▲28.08 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 57.96 ▲22.02 |
Types /wp-admin/edit-tags.php?taxonomy=toristy-type | 3.60 | 62.56 |
Locations /wp-admin/edit-tags.php?taxonomy=toristy-location | 3.60 | 69.66 |
Categories /wp-admin/edit-tags.php?taxonomy=toristy-category | 3.60 | 70.04 |
Services /wp-admin/edit.php?post_type=toristy-service | 3.65 | 63.41 |
Dashboard /wp-admin/admin.php?page=toristy-settings | 3.60 | 60.66 |
Providers /wp-admin/edit.php?post_type=toristy-provider | 3.65 | 62.31 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
toristy-caches |
theysaidso_admin_options |
toristy-main-page-id |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Toristy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.29 ▼1.01 | 1.62 ▲0.07 | 46.31 ▲6.70 |
Dashboard /wp-admin | 2,245 ▲53 | 4.85 ▼0.14 | 109.51 ▼13.01 | 38.83 ▼3.31 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.05 ▲0.06 | 39.87 ▼1.53 | 35.67 ▲0.67 |
Add New Post /wp-admin/post-new.php | 6,663 ▲5,130 | 23.72 ▲0.64 | 855.09 ▲221.31 | 62.95 ▲14.35 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.25 ▲0.02 | 94.80 ▼1.91 | 40.73 ▼1.96 |
Types /wp-admin/edit-tags.php?taxonomy=toristy-type | 1,521 | 3.43 | 54.45 | 39.32 |
Locations /wp-admin/edit-tags.php?taxonomy=toristy-location | 1,521 | 3.39 | 40.63 | 21.14 |
Categories /wp-admin/edit-tags.php?taxonomy=toristy-category | 1,524 | 3.35 | 43.95 | 28.01 |
Services /wp-admin/edit.php?post_type=toristy-service | 1,284 | 3.51 | 46.00 | 26.11 |
Dashboard /wp-admin/admin.php?page=toristy-settings | 2,458 | 4.08 | 67.03 | 57.77 |
Providers /wp-admin/edit.php?post_type=toristy-provider | 1,260 | 3.65 | 47.73 | 24.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- toristy-caches
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/toristy/toristy-booking-plugin.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Toristy\\Contents\\JsonClass' not found in wp-content/plugins/toristy/Sources/Contents/Service.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Toristy\\Cores\\Admins\\AdminTab' not found in wp-content/plugins/toristy/Sources/Cores/Admins/TabServices.php:15
- > PHP Fatal error
Uncaught Error: Class 'Toristy\\Cores\\ShortCode' not found in wp-content/plugins/toristy/Sources/Cores/Codes/TagCode.php:12
- > PHP Fatal error
Trait 'Toristy\\Contents\\JsonClass' not found in wp-content/plugins/toristy/Sources/Contents/ServiceType.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/toristy/templates/search.php:9
- > PHP Fatal error
Uncaught Error: Class 'Toristy\\Helpers\\Data' not found in wp-content/plugins/toristy/Sources/Cores/Option.php:12
- > PHP Fatal error
Uncaught Error: Class 'Toristy\\Cores\\Admins\\AdminTab' not found in wp-content/plugins/toristy/Sources/Cores/Admins/TabOptions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Toristy\\Helpers\\Populate' not found in wp-content/plugins/toristy/Sources/Helpers/Parses/FilterParse.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/toristy/templates/service.php:14
- > PHP Fatal error
Trait 'Toristy\\Contents\\JsonClass' not found in wp-content/plugins/toristy/Sources/Contents/ProviderRating.php on line 12
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== toristy ===
)
toristy/toristy-booking-plugin.php 92% from 13 tests
This is the main PHP file of "Toristy" version 2.0.1, 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("toristy.php" instead of "toristy-booking-plugin.php")
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
Success! There were no dangerous files found in this plugin5,718 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 738 | 960 | 5,663 |
SVG | 1 | 0 | 0 | 36 |
CSS | 6 | 1 | 1 | 12 |
JavaScript | 5 | 0 | 13 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 23.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 44 | |
▷ Abstract classes | 6 | 13.64% |
▷ Concrete classes | 38 | 86.36% |
▷ Final classes | 0 | 0.00% |
Methods | 350 | |
▷ Static methods | 48 | 13.71% |
▷ Public methods | 240 | 68.57% |
▷ Protected methods | 36 | 10.29% |
▷ Private methods | 74 | 21.14% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 9.09KB | 4.41KB | ▼ 51.49% |
assets/images/preview.png | 4.85KB | 1.67KB | ▼ 65.49% |