Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼32.26ms] Passed 4 tests
A check of server-side resources used by Trip Plan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.39 ▼5.46 |
Dashboard /wp-admin | 3.11 ▼0.20 | 23.68 ▼24.05 |
Posts /wp-admin/edit.php | 3.11 ▼0.25 | 26.20 ▼20.57 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 23.20 ▼74.28 |
Media Library /wp-admin/upload.php | 3.11 ▼0.12 | 23.47 ▼10.12 |
Settings /wp-admin/admin.php?page=tripplan_settings | 3.11 | 23.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
tripplan_settings |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Trip Plan: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲68 | 13.53 ▼0.86 | 1.69 ▼0.16 | 44.52 ▲5.62 |
Dashboard /wp-admin | 2,242 ▲60 | 5.03 ▼0.82 | 99.12 ▼2.02 | 98.88 ▲55.52 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.30 ▲0.24 | 40.28 ▼3.51 | 35.15 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,704 ▲160 | 22.80 ▲4.57 | 762.72 ▲164.15 | 37.87 ▼13.86 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.34 ▲0.17 | 102.92 ▼1.67 | 72.02 ▲30.64 |
Settings /wp-admin/admin.php?page=tripplan_settings | 1,801 | 2.47 | 72.74 | 29.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- tripplan_settings
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=tripplan_settings
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tripplan/images/checklist-icon.php
- > /wp-content/plugins/tripplan/tripplan-com.php
- > /wp-content/plugins/tripplan/images/ic_print_white_24px.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: fill in wp-content/plugins/tripplan/images/checklist-icon.php on line 3
- > PHP Notice
Undefined index: fill in wp-content/plugins/tripplan/images/ic_print_white_24px.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tripplan/includes/tripplan-settings.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: travel, trip, google map, map, maps
tripplan/tripplan-com.php 85% from 13 tests
The main PHP file in "Trip Plan" ver. 1.0.10 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("tripplan.php" instead of "tripplan-com.php")
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
There were no executable files found in this plugin1,287 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 70 | 629 |
JavaScript | 3 | 58 | 36 | 519 |
CSS | 3 | 12 | 8 | 135 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 29 | |
▷ Static methods | 8 | 27.59% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/red.png | 1.27KB | 1.04KB | ▼ 18.77% |
images/icon-white-16.png | 0.89KB | 0.39KB | ▼ 56.24% |