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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.34ms] Passed 4 tests
An overview of server-side resources used by Where's Weed Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.37 ▼2.60 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.08 ▼5.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 59.54 ▲4.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.87 ▼15.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.77 ▼2.37 |
Wheres Weed Menu /wp-admin/options-general.php?page=ww_menu | 3.22 | 31.00 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Where's Weed Menu: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.28 ▼0.07 | 1.91 ▼0.09 | 45.75 ▼0.21 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.11 | 89.32 ▼2.27 | 40.92 ▼2.58 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.03 ▲0.03 | 36.34 ▼4.14 | 33.31 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.18 ▼0.37 | 664.22 ▲30.83 | 52.27 ▼11.08 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.08 | 100.13 ▼14.18 | 41.55 ▼6.59 |
Wheres Weed Menu /wp-admin/options-general.php?page=ww_menu | 697 | 1.51 | 8.65 | 18.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ww_menu
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/marijuana-menu-by-wheres-weed/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/marijuana-menu-by-wheres-weed/templates/settings.php(5): do_settings_fields()
#1 wp-content/plugins/marijuana-menu-by-wheres-weed/settings.php(116): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WW_Menu_Settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/marijuana-menu-by-wheres-weed/templates/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/marijuana-menu-by-wheres-weed/ww_menu.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/marijuana-menu-by-wheres-weed/shortcode.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #2 is required in marijuana-menu-by-wheres-weed/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== marijuana-menu-by-wheres-weed ===
)
marijuana-menu-by-wheres-weed/ww_menu.php 92% from 13 tests
The main file in "Where's Weed Menu" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("marijuana-menu-by-wheres-weed.php" instead of "ww_menu.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
Good job! No executable or dangerous file extensions detected215 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 71 | 214 |
JavaScript | 1 | 1 | 7 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin