Benchmarks
Plugin footprint 65% 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.91MB] [CPU: ▼47.62ms] Passed 4 tests
An overview of server-side resources used by Wordpress Local SEO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▼0.40 | 23.29 ▼19.53 |
Dashboard /wp-admin | 3.11 ▼0.23 | 20.35 ▼45.31 |
Posts /wp-admin/edit.php | 3.11 ▼0.24 | 17.93 ▼34.54 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.77 | 18.33 ▼91.10 |
Media Library /wp-admin/upload.php | 3.11 ▼0.12 | 17.61 ▼18.42 |
WP Local Seo /wp-admin/options-general.php?page=wp-localseo-settings | 3.11 | 18.31 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp_localseo |
widget_recent-comments |
wpl_version |
db_upgraded |
wpl_rewrite_rules |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress Local SEO
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,129 ▲383 | 15.99 ▲1.62 | 28.65 ▲26.83 | 42.78 ▼0.88 |
Dashboard /wp-admin | 2,338 ▲161 | 6.08 ▲0.48 | 111.33 ▲18.92 | 40.86 ▼10.66 |
Posts /wp-admin/edit.php | 2,279 ▲176 | 3.34 ▲1.39 | 49.58 ▲13.85 | 33.25 ▲0.63 |
Add New Post /wp-admin/post-new.php | 7,802 ▲6,276 | 28.77 ▲5.73 | 889.16 ▲202.18 | 48.54 ▼15.20 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.12 ▼0.07 | 80.80 ▼20.35 | 46.50 ▲0.29 |
WP Local Seo /wp-admin/options-general.php?page=wp-localseo-settings | 2,025 | 3.00 | 42.49 | 33.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+146
Undefined index: wpl_reset
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- wpl_rewrite_rules
- wp_localseo
- widget_theysaidso_widget
- wpl_version
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+146
Undefined index: wpl_reset
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+1972
Undefined index: flush_rewrite_rules
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+546
Undefined index: wp_block
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+546
Undefined index: wp_navigation
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+478
Undefined index: reset
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+760
Undefined index: disabled
- > GET request to /wp-admin/options-general.php?page=wp-localseo-settings
- > Notice in wp-content/plugins/dh-local-seo/wp-local-seo.php+759
Undefined index: help
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/dh-local-seo/location-template-mini.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/dh-local-seo/location-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dh-local-seo/inc/business_list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dh-local-seo/wp-local-seo.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: seo, location, digitaleheimat, geo, local...
dh-local-seo/wp-local-seo.php 85% from 13 tests
The main PHP file in "Wordpress Local SEO" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("dh-local-seo.php" instead of "wp-local-seo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,771 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 424 | 418 | 1,575 |
PO File | 1 | 307 | 333 | 800 |
JavaScript | 4 | 68 | 24 | 301 |
CSS | 1 | 14 | 0 | 95 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 227.00 |
▷ Minimum class complexity | 227.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 82.80KB | 39.55KB | ▼ 52.23% |
assets/screenshot-1.png | 70.04KB | 30.42KB | ▼ 56.57% |