Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Parse error in wp-content/plugins/average-travel-costs/budgetyourtrip-costs.php+145
syntax error, unexpected 'echo' (T_ECHO), expecting function (T_FUNCTION) or const (T_CONST)
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.68ms] Passed 4 tests
A check of server-side resources used by Average Travel Costs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.96 ▲0.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.31 ▼3.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.45 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.48 ▼1.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.17 ▼2.26 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Average Travel Costs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.21 ▼0.09 | 1.58 ▼0.09 | 36.17 ▼8.13 |
Dashboard /wp-admin | 2,209 ▼0 | 4.91 ▼1.00 | 96.43 ▼0.73 | 37.57 ▲2.20 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 39.35 ▲4.09 | 35.58 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.73 ▼5.37 | 665.66 ▲1.38 | 60.32 ▲3.17 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.25 ▲0.05 | 102.65 ▼6.70 | 45.03 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected 'echo' (T_ECHO), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/average-travel-costs/budgetyourtrip-costs.php on line 145
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: travel costs, country, travel, gutenberg, blocks...
average-travel-costs/budgetyourtrip-costs.php 92% from 13 tests
"Average Travel Costs" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("average-travel-costs.php" instead of "budgetyourtrip-costs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin882 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 90 | 24 | 426 |
PHP | 1 | 81 | 47 | 310 |
SVG | 1 | 0 | 0 | 75 |
CSS | 3 | 7 | 2 | 71 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.39MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 42.50KB | 12.79KB | ▼ 69.89% |
screenshot-2.png | 41.15KB | 13.36KB | ▼ 67.54% |
budgetyourtrip_widget_preview.png | 16.77KB | 6.25KB | ▼ 62.72% |
screenshot-5.png | 69.27KB | 19.80KB | ▼ 71.41% |
screenshot-1.png | 132.10KB | 35.30KB | ▼ 73.28% |