Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.48ms] Passed 4 tests
This is a short check of server-side resources used by LB Select Location
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.56 ▼0.71 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.75 ▼1.25 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.33 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.64 ▼15.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.41 ▲0.03 |
Server storage [IO: ▲1.05MB] [DB: ▲0.89MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_sl_province |
wp_sl_regioni |
wp_sl_comuni |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for LB Select Location
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.68 ▼0.70 | 7.05 ▲5.31 | 39.43 ▼0.22 |
Dashboard /wp-admin | 2,213 ▲24 | 5.84 ▲0.89 | 104.47 ▼2.80 | 37.77 ▼5.99 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.02 ▲0.00 | 37.52 ▼1.80 | 35.43 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.06 ▼0.29 | 624.22 ▼53.69 | 74.56 ▲19.10 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.22 ▲0.01 | 95.73 ▼5.56 | 42.55 ▼2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.89MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$preix
- The uninstall procedure failed, leaving 3 tables in the database
- wp_sl_regioni
- wp_sl_comuni
- wp_sl_province
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant TB_COM - assumed 'TB_COM' (this will throw an Error in a future version of PHP) in wp-content/plugins/lb-select-location/class/select.class.php on line 312
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lb-select-location/class/select-shortcode.class.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/lb-select-location/lb-select-location.php:36
- > PHP Warning
Use of undefined constant TB_REG - assumed 'TB_REG' (this will throw an Error in a future version of PHP) in wp-content/plugins/lb-select-location/class/select.class.php on line 312
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lb-select-location/class/select-ajax.class.php:21
- > PHP Warning
Use of undefined constant TB_PRO - assumed 'TB_PRO' (this will throw an Error in a future version of PHP) in wp-content/plugins/lb-select-location/class/select.class.php on line 312
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: italia, province, selezione, regioni, comuni
lb-select-location/lb-select-location.php 92% from 13 tests
The main PHP script in "LB Select Location" version 2.6.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 341 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,727 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 0 | 0 | 8,279 |
PHP | 5 | 143 | 320 | 325 |
JavaScript | 1 | 26 | 43 | 88 |
CSS | 1 | 6 | 3 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 74.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 25.93% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin