Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.20ms] Passed 4 tests
A check of server-side resources used by Travel Company Helper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.92 ▼0.41 |
Dashboard /wp-admin | 3.46 ▲0.11 | 46.97 ▼20.83 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.87 ▲4.08 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 95.40 ▼1.13 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 33.78 ▼2.43 |
Category /wp-admin/edit-tags.php?taxonomy=service_categories&post_type=service | 3.37 | 34.13 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=service | 3.37 | 33.97 |
Services /wp-admin/edit.php?post_type=service | 3.42 | 36.03 |
Add New /wp-admin/post-new.php?post_type=service | 3.50 | 54.11 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Travel Company Helper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲119 | 13.56 ▼0.82 | 2.02 ▲0.13 | 44.30 ▼0.92 |
Dashboard /wp-admin | 2,243 ▲52 | 5.83 ▲0.91 | 101.24 ▼5.08 | 39.42 ▼6.85 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.06 ▲0.06 | 40.84 ▲4.98 | 35.82 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 23.36 ▲5.87 | 614.57 ▼66.03 | 61.90 ▲7.68 |
Media Library /wp-admin/upload.php | 1,428 ▲46 | 4.21 ▼0.03 | 95.91 ▼12.76 | 44.58 ▼0.58 |
Category /wp-admin/edit-tags.php?taxonomy=service_categories&post_type=service | 1,299 | 2.14 | 26.71 | 28.09 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=service | 1,341 | 2.14 | 26.79 | 29.68 |
Services /wp-admin/edit.php?post_type=service | 1,104 | 1.96 | 30.77 | 28.17 |
Add New /wp-admin/post-new.php?post_type=service | 2,415 | 7.79 | 169.78 | 64.77 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/travel-company-helper/travel-company-helper.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-company-helper/metabox/travel-company-service-meta-boxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-company-helper/custom-post-types.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-company-helper/inc/RepeaterController.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-company-helper/travel-company-helper-function.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=service
- > Network (severe)
wp-content/plugins/assets/css/meta-box.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: themes
travel-company-helper/travel-company-helper.php Passed 13 tests
The main PHP script in "Travel Company Helper" version 1.0.5 is automatically included on every request by WordPress
81 characters long description:
Used for Travel Company theme for frontpage section and custom post type service.
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
Everything looks great! No dangerous files found in this plugin1,328 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 278 | 302 | 1,311 |
CSS | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 5.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected