Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.48ms] Passed 4 tests
Server-side resources used by Trail Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.59 ▼5.18 |
Dashboard /wp-admin | 3.46 ▲0.15 | 51.48 ▲3.17 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.33 ▲2.62 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.13 | 90.42 ▲4.08 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.62 ▲1.29 |
Add New Trail Network /wp-admin/post-new.php?post_type=trail_network | 3.50 | 52.42 |
All Trail Networks /wp-admin/edit.php?post_type=trail_network | 3.42 | 39.63 |
Server storage [IO: ▲2.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Trail Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲109 | 14.36 ▼0.02 | 1.70 ▼0.23 | 41.61 ▼1.40 |
Dashboard /wp-admin | 2,271 ▲97 | 5.66 ▲0.05 | 95.42 ▲7.29 | 41.47 ▲1.75 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 2.04 ▲0.01 | 39.28 ▲2.33 | 34.92 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,568 ▲39 | 23.39 ▲5.88 | 694.28 ▲78.82 | 59.35 ▼4.89 |
Media Library /wp-admin/upload.php | 1,477 ▲83 | 4.27 ▲0.01 | 100.35 ▼0.84 | 43.99 ▼1.22 |
Add New Trail Network /wp-admin/post-new.php?post_type=trail_network | 2,409 | 8.34 | 207.29 | 71.04 |
All Trail Networks /wp-admin/edit.php?post_type=trail_network | 1,140 | 2.01 | 35.54 | 30.63 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/trail-manager/admin/partials/trail-manager-admin-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/trail-manager/public/partials/trail-manager-single-network.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/trail-manager/public/partials/trail-manager-single-network.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/trail-manager/public/partials/trail-manager-all-networks.php:22
- > PHP Notice
Undefined variable: atts in wp-content/plugins/trail-manager/public/partials/trail-manager-single-network.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: caution, mountain bike, trails, manager, open...
trail-manager/trail-manager.php Passed 13 tests
The primary PHP file in "Trail Manager" version 1.0.0 is used by WordPress to initiate all plugin functionality
55 characters long description:
Manage trail networks and display them on the front end
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
No dangerous file extensions were detected1,087 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 148 | 610 | 556 |
Sass | 2 | 52 | 4 | 236 |
Vuejs Component | 2 | 3 | 0 | 151 |
JavaScript | 6 | 14 | 43 | 64 |
SVG | 5 | 0 | 5 | 50 |
JSON | 2 | 0 | 0 | 28 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 4 | 10.26% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.78MB with 0.59MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 311.32KB | 78.77KB | ▼ 74.70% |
assets/screenshot-2.png | 148.91KB | 35.48KB | ▼ 76.17% |
assets/screenshot-1.png | 339.71KB | 88.20KB | ▼ 74.04% |