Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.16MB] [CPU: ▼19.28ms] Passed 4 tests
Server-side resources used by AnyRoad
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.75 ▼0.93 |
Dashboard /wp-admin | 3.13 ▼0.17 | 26.40 ▼21.96 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 31.79 ▼14.31 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.38 | 65.41 ▼29.81 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 26.38 ▼11.03 |
Help /wp-admin/admin.php?page=anyguide-help | 3.29 | 32.65 |
My Snippets /wp-admin/admin.php?page=anyguide-manage | 3.31 | 34.44 |
Settings /wp-admin/admin.php?page=anyguide-settings | 3.29 | 29.25 |
Server storage [IO: ▲3.30MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 62 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_anyguide_short_code |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
anyguide_limit |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AnyRoad
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲64 | 14.37 ▲0.09 | 2.94 ▲1.12 | 42.24 ▼1.71 |
Dashboard /wp-admin | 2,230 ▲53 | 5.69 ▲0.08 | 85.27 ▼5.22 | 67.64 ▲31.22 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 1.99 ▼0.02 | 34.56 ▼1.49 | 31.47 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,571 ▲33 | 22.98 ▼0.32 | 663.11 ▼6.49 | 140.05 ▲87.20 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.11 ▼0.11 | 102.18 ▼6.61 | 75.47 ▲32.05 |
Help /wp-admin/admin.php?page=anyguide-help | 998 | 5.25 | 157.63 | 65.68 |
My Snippets /wp-admin/admin.php?page=anyguide-manage | 1,035 | 5.35 | 167.57 | 63.49 |
Settings /wp-admin/admin.php?page=anyguide-settings | 962 | 5.14 | 96.66 | 27.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% 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 everything seems fine, this is not an exhaustive test
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 fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/anyguide/admin/footer.php
- > /wp-content/plugins/anyguide/admin/help.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/anyguide/admin/snippets.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/anyguide/admin/snippet-edit.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/anyguide/ag-functions.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/anyguide/admin/snippet-delete.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/anyguide/ag-functions.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/anyguide/shortcode-handler.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/anyguide/admin/snippet-add.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anyguide/shortcode_tynimce.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anyguide/admin/menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/anyguide/admin/uninstall.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=anyguide-settings
- > Network (severe)
https://api-iam.intercom.io/messenger/web/ping - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
- Screenshots: Add a description for screenshot #2 in anyguide/assets to your readme.txt
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
anyguide/anyguide.php 92% from 13 tests
"AnyRoad" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected11,453 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 219 | 44 | 9,702 |
PHP | 18 | 186 | 59 | 967 |
SVG | 2 | 0 | 1 | 594 |
JavaScript | 6 | 61 | 21 | 190 |
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.32 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 1.67MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 388.82KB | 160.75KB | ▼ 58.66% |
assets/images/delete.png | 3.59KB | 2.18KB | ▼ 39.36% |
assets/images/button16.png | 14.75KB | 0.77KB | ▼ 94.77% |
assets/images/facebook.png | 0.59KB | 0.66KB | 0.00% |
assets/images/logo.png | 0.51KB | 0.53KB | 0.00% |