Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.90ms] Passed 4 tests
Server-side resources used by Travel Agency Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 50.44 ▲2.41 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.36 ▲0.15 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.58 ▼0.26 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 98.88 ▼1,195.10 |
Media Library /wp-admin/upload.php | 3.29 ▼0.01 | 25.06 ▼8.38 |
Server storage [IO: ▲4.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Travel Agency Companion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.22 ▲0.17 | 6.43 ▲0.34 | 2.39 ▼0.68 |
Dashboard /wp-admin | 2,895 ▲37 | 6.22 ▼0.09 | 121.30 ▼10.59 | 156.24 ▼8.62 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▲0.01 | 60.14 ▼1.90 | 136.31 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,752 ▼0 | 21.60 ▲0.59 | 444.16 ▲12.28 | 152.91 ▼5.63 |
Media Library /wp-admin/upload.php | 1,701 ▲6 | 5.48 ▼0.04 | 152.04 ▲9.00 | 189.52 ▼13.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/travel-agency-companion/admin/partials/travel-agency-companion-admin-display.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Travel_Agency_Companion_Dummy_Array' not found in wp-content/plugins/travel-agency-companion/public/sections/deals.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-agency-companion/includes/class-travel-agency-companion-customizer.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/travel-agency-companion/public/sections/about.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-agency-companion/includes/widgets/widget-featured.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-agency-companion/includes/widgets/widget-popular-post.php:12
- > PHP Fatal error
Uncaught Error: Class 'Travel_Agency_Companion_Dummy_Array' not found in wp-content/plugins/travel-agency-companion/public/sections/stats.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-agency-companion/includes/widgets/widget-recent-post.php:12
- > PHP Fatal error
Uncaught Error: Class 'Travel_Agency_Companion_Dummy_Array' not found in wp-content/plugins/travel-agency-companion/public/sections/activities.php:8
- > PHP Fatal error
Uncaught Error: Class 'Travel_Agency_Companion_Dummy_Array' not found in wp-content/plugins/travel-agency-companion/public/sections/popular.php:8
- > PHP Fatal error
Uncaught Error: Class 'Travel_Agency_Companion_Dummy_Array' not found in wp-content/plugins/travel-agency-companion/public/sections/featured-trip.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: toolkit, travelagency, companion, raratheme, theme
travel-agency-companion/travel-agency-companion.php 92% from 13 tests
The main PHP script in "Travel Agency Companion" version 1.5.2 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin12,185 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 659 | 1,133 | 5,432 |
JavaScript | 14 | 571 | 215 | 4,344 |
CSS | 6 | 277 | 56 | 2,039 |
XML | 1 | 0 | 0 | 370 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 2 | 2.74% |
▷ Public methods | 64 | 87.67% |
▷ Protected methods | 3 | 4.11% |
▷ Private methods | 6 | 8.22% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 5 | |
▷ Global constants | 5 | 100.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