Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.08MB] [CPU: ▼34.66ms] Passed 4 tests
Server-side resources used by Improve My City
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 21.00 ▼21.54 |
Dashboard /wp-admin | 3.93 ▲0.63 | 25.78 ▼24.45 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 26.53 ▼24.12 |
Add New Post /wp-admin/post-new.php | 3.93 ▼1.96 | 25.91 ▼68.52 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 31.70 ▼4.28 |
IMC Settings /wp-admin/options-general.php?page=imc_options | 3.93 | 27.46 |
Logs /wp-admin/edit.php?post_type=imc_issues&page=mylogs | 3.93 | 23.16 |
User Groups /wp-admin/edit-tags.php?taxonomy=imc_usergroup | 3.93 | 24.04 |
Server storage [IO: ▲2.05MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 118 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_imc_users_firebase |
wp_imc_tokens |
wp_imc_votes |
wp_imc_logs |
wp_imc_users_slogin |
wp_imc_posts_index |
wp_imc_keys |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
hclpage |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Improve My City
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,041 ▲295 | 14.77 ▲0.12 | 28.07 ▲26.22 | 76.81 ▲29.66 |
Dashboard /wp-admin | 2,274 ▲86 | 4.91 ▲0.03 | 98.66 ▼18.71 | 37.76 ▼1.88 |
Posts /wp-admin/edit.php | 2,154 ▲62 | 2.08 ▲0.09 | 40.22 ▼0.18 | 38.04 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 22.50 ▲4.61 | 686.13 ▲22.28 | 54.50 ▼10.27 |
Media Library /wp-admin/upload.php | 1,456 ▲71 | 4.27 ▲0.07 | 110.55 ▲2.97 | 47.35 ▲4.82 |
IMC Settings /wp-admin/options-general.php?page=imc_options | 1,633 | 6.88 | 145.73 | 99.65 |
Logs /wp-admin/edit.php?post_type=imc_issues&page=mylogs | 883 | 1.80 | 33.00 | 32.14 |
User Groups /wp-admin/edit-tags.php?taxonomy=imc_usergroup | 1,307 | 2.21 | 26.60 | 29.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/improve-my-city/functions/imc-core-issues.php+66
Trying to access array offset on value of type bool
- Zombie tables were found after uninstall: 7 tables
- wp_imc_keys
- wp_imc_users_firebase
- wp_imc_votes
- wp_imc_users_slogin
- wp_imc_logs
- wp_imc_tokens
- wp_imc_posts_index
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- hclpage
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% 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
- 17 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=imc_usergroup
- > Notice in wp-content/plugins/improve-my-city/improve-my-city.php+293
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/improve-my-city/hybridauth/index.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth2' not found in wp-content/plugins/improve-my-city/hybridauth/Hybrid/Providers/Foursquare.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/improve-my-city/functions/imc-core-issues.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/improve-my-city/functions/templates/insert-imc_issues.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/improve-my-city/functions/imc-user-groups.php:12
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model' not found in wp-content/plugins/improve-my-city/hybridauth/Hybrid/Providers/Facebook.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/improve-my-city/functions/imc-core-notifications.php:274
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/improve-my-city/functions/templates/archive-imc_issues.php:8
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth1' not found in wp-content/plugins/improve-my-city/hybridauth/Hybrid/Providers/Twitter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/improve-my-city/functions/imc-core-posts-index.php:87
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model' not found in wp-content/plugins/improve-my-city/hybridauth/Hybrid/Providers/Paypal.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=imc_options
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3&key&language=en®ion=GB&libraries=places%2Cgeometry&ver=6.3.1 343:267 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/options-general.php?page=imc_options
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3&key&language=en®ion=GB&libraries=places%2Cgeometry&ver=6.3.1 242:322 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
- > GET request to /wp-admin/options-general.php?page=imc_options
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?v=3&key&language=en®ion=GB&libraries=places%2Cgeometry&ver=6.3.1 226:426 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: improve, city, imc, improvemycity
improve-my-city/improve-my-city.php Passed 13 tests
The primary PHP file in "Improve My City" version 1.6 is used by WordPress to initiate all plugin functionality
84 characters long description:
A platform for managing local issues; from reporting, to administration and analysis
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/improve-my-city/hybridauth/Hybrid/thirdparty/Facebook/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 3,679 | 6,081 | 10,983 |
JavaScript | 11 | 999 | 886 | 4,392 |
PO File | 6 | 2,106 | 2,987 | 3,950 |
CSS | 6 | 454 | 120 | 2,570 |
HTML | 3 | 2 | 3 | 28 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing 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.36 |
Average class complexity | 26.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 4 | 8.16% |
▷ Concrete classes | 45 | 91.84% |
▷ Final classes | 0 | 0.00% |
Methods | 489 | |
▷ Static methods | 47 | 9.61% |
▷ Public methods | 389 | 79.55% |
▷ Protected methods | 69 | 14.11% |
▷ Private methods | 31 | 6.34% |
Functions | 148 | |
▷ Named functions | 147 | 99.32% |
▷ Anonymous functions | 1 | 0.68% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ic_avatar_user_me.png | 0.94KB | 0.46KB | ▼ 50.47% |
img/img_banner.png | 41.87KB | 16.91KB | ▼ 59.61% |
img/ic_avatar_author.png | 1.06KB | 0.51KB | ▼ 51.93% |
img/ic_marker_default.png | 0.42KB | 0.31KB | ▼ 26.21% |
img/ic_google.png | 0.87KB | 0.80KB | ▼ 8.32% |