Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/ohio-sheriff-tools/main.php+42
Function create_function() is deprecated
Server metrics [RAM: ▼1.72MB] [CPU: ▼213.06ms] Passed 4 tests
Server-side resources used by Ohio Sheriff Tools
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼0.92 | 4.92 ▼18.05 |
Dashboard /wp-admin | 1.94 ▼1.13 | 5.62 ▼30.68 |
Posts /wp-admin/edit.php | 1.94 ▼1.17 | 5.23 ▼25.47 |
Add New Post /wp-admin/post-new.php | 1.94 ▼3.50 | 4.62 ▼777.45 |
Media Library /wp-admin/upload.php | 1.94 ▼1.07 | 4.26 ▼18.64 |
Sheriff Sales /wp-admin/admin.php?page=sheriff_menu_sale | 1.94 | 4.72 |
Road Levels /wp-admin/admin.php?page=sheriff_menu_road | 1.94 | 4.44 |
Wanted /wp-admin/admin.php?page=sheriff_menu_wanted | 1.94 | 4.89 |
Sheriff Tools /wp-admin/admin.php?page=sheriff_menu_main | 1.94 | 4.68 |
Road Closures /wp-admin/admin.php?page=sheriff_menu_closures | 1.94 | 4.69 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_road_closure |
New WordPress options |
---|
category_children |
widget_level_widget |
sheriff_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Ohio Sheriff Tools
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,734 ▲133 | 16.00 ▲0.34 | 5.21 ▲0.10 | 77.16 ▲0.17 |
Dashboard /wp-admin | 2,997 ▲98 | 6.14 ▲0.00 | 113.52 ▼15.99 | 164.95 ▼6.79 |
Posts /wp-admin/edit.php | 2,889 ▲149 | 3.37 ▲0.13 | 64.21 ▲0.17 | 138.82 ▼3.22 |
Add New Post /wp-admin/post-new.php | 3,749 ▲5 | 19.13 ▲0.63 | 409.08 ▼23.58 | 161.66 ▼4.23 |
Media Library /wp-admin/upload.php | 1,819 ▲67 | 5.52 ▲0.00 | 133.25 ▼9.13 | 180.33 ▼8.01 |
Sheriff Sales /wp-admin/admin.php?page=sheriff_menu_sale | 1,102 | 2.40 | 52.12 | 97.08 |
Road Levels /wp-admin/admin.php?page=sheriff_menu_road | 1,094 | 2.41 | 54.01 | 102.45 |
Wanted /wp-admin/admin.php?page=sheriff_menu_wanted | 1,102 | 2.37 | 53.12 | 104.26 |
Sheriff Tools /wp-admin/admin.php?page=sheriff_menu_main | 1,716 | 2.37 | 53.89 | 142.73 |
Road Closures /wp-admin/admin.php?page=sheriff_menu_closures | 1,093 | 2.33 | 54.27 | 99.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ohio-sheriff-tools/main.php+42
Function create_function() is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_road_closure
- Zombie WordPress options were found after uninstall: 3 options
- widget_level_widget
- category_children
- sheriff_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sheriff_menu_closures
- > Deprecated in wp-content/plugins/ohio-sheriff-tools/main.php+42
Function create_function() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sheriff_menu_closures
- > Notice in wp-content/plugins/ohio-sheriff-tools/main.php+84
Undefined index: update_options
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ohio-sheriff-tools/road.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ohio-sheriff-tools/main.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ohio-sheriff-tools/closures.php:11
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: admin, wordpress, widget, manage, administration...
ohio-sheriff-tools/main.php 85% from 13 tests
The primary PHP file in "Ohio Sheriff Tools" version 0.1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ohio-sheriff-tools.php" instead of "main.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 297 characters long)
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
There were no executable files found in this plugin672 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 60 | 39 | 672 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.83 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin