Benchmarks
Plugin footprint 65% 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.02MB] [CPU: ▼8.76ms] Passed 4 tests
Analyzing server-side resources used by Trail Status
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.96 ▼15.41 |
Dashboard /wp-admin | 3.36 ▲0.01 | 58.56 ▼10.36 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 57.34 ▲5.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 96.28 ▼8.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.68 ▼0.67 |
/wp-admin/admin.php?page=trail-status-2-edit | 3.31 | 34.46 |
Status List /wp-admin/admin.php?page=trail-status-2-statuses | 3.30 | 41.76 |
Add Trail /wp-admin/admin.php?page=trail-status-2-add | 3.22 | 33.41 |
Update Status /wp-admin/admin.php?page=trail-status-2 | 3.28 | 40.76 |
Trail List /wp-admin/admin.php?page=trail-status-2-list | 3.28 | 38.13 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_otgts2_trails |
wp_otgts2_statuses |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_otgts2_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Trail Status
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲235 | 14.96 ▲0.31 | 1.80 ▼0.10 | 48.19 ▲5.50 |
Dashboard /wp-admin | 2,398 ▲221 | 6.73 ▲1.09 | 133.50 ▲47.29 | 44.37 ▲5.63 |
Posts /wp-admin/edit.php | 2,329 ▲232 | 3.82 ▲1.82 | 69.80 ▲30.98 | 36.23 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.41 ▲5.74 | 667.74 ▼14.20 | 40.06 ▼15.19 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.71 ▲0.40 | 94.54 ▼23.78 | 43.31 ▼5.18 |
/wp-admin/admin.php?page=trail-status-2-edit | 1,132 | 3.53 | 52.19 | 31.89 |
Status List /wp-admin/admin.php?page=trail-status-2-statuses | 2,591 | 5.31 | 108.55 | 39.28 |
Add Trail /wp-admin/admin.php?page=trail-status-2-add | 1,132 | 3.55 | 51.80 | 29.32 |
Update Status /wp-admin/admin.php?page=trail-status-2 | 1,080 | 3.55 | 51.38 | 30.30 |
Trail List /wp-admin/admin.php?page=trail-status-2-list | 1,274 | 3.85 | 67.50 | 32.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_otgts2_trails
- wp_otgts2_statuses
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_otgts2_widget
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=trail-status-2-add
- > Notice in wp-content/plugins/trail-status/admin.php+408
Undefined index: trail
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/trail-status/views/about.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/trail-status/trail-status.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/trail-status/trail-status.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function otgts2_display_messages() in wp-content/plugins/trail-status/views/update.php:20
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/trail-status/trail-status.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function otgts2_display_messages() in wp-content/plugins/trail-status/views/status_list.php:45
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/trail-status/widgets.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function otgts2_display_messages() in wp-content/plugins/trail-status/views/trail_list.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function otgts2_display_messages() in wp-content/plugins/trail-status/views/trail_edit.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: trails, widget, hiking, biking, shortcode...
trail-status/trail-status.php Passed 13 tests
"Trail Status" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
34 characters long description:
Show the current status of trails.
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
Success! There were no dangerous files found in this plugin1,325 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 131 | 357 | 1,053 |
CSS | 3 | 21 | 24 | 198 |
JavaScript | 3 | 12 | 46 | 74 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/trail-placeholder.png | 13.29KB | 5.77KB | ▼ 56.59% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_both.png | 0.20KB | 0.29KB | 0.00% |