Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲3.49MB] [CPU: ▲24.16ms] Passed 4 tests
An overview of server-side resources used by Simple Location
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.00 ▲3.53 | 69.03 ▲27.94 |
Dashboard /wp-admin | 6.86 ▲3.52 | 72.39 ▲9.24 |
Posts /wp-admin/edit.php | 6.92 ▲3.56 | 83.75 ▲36.88 |
Add New Post /wp-admin/post-new.php | 9.23 ▲3.34 | 117.87 ▲22.57 |
Media Library /wp-admin/upload.php | 6.79 ▲3.56 | 68.13 ▲37.90 |
Simple Location /wp-admin/options-general.php?page=simloc | 6.74 | 69.40 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=page | 6.78 | 61.16 |
All Venues /wp-admin/edit.php?post_type=venue | 6.85 | 64.79 |
Locations /wp-admin/edit-tags.php?taxonomy=location | 6.78 | 60.51 |
Types /wp-admin/edit-tags.php?taxonomy=venue_type&post_type=venue | 6.78 | 60.76 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=attachment | 6.78 | 58.07 |
Add New /wp-admin/post-new.php?post_type=venue | 9.22 | 102.33 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=venue | 6.78 | 69.07 |
Server storage [IO: ▲33.78MB] [DB: ▲0.07MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Total filesystem usage must be limited to 25MB (currently using 33.78MB)
Filesystem: 616 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_sloc_airport_widget |
widget_sloc_station_widget |
widget_sloc_lastseen_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_sloc_weather_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Location
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲109 | 14.29 ▼0.05 | 1.83 ▲0.02 | 40.63 ▼3.31 |
Dashboard /wp-admin | 2,249 ▲71 | 5.63 ▲0.01 | 90.20 ▼16.87 | 41.92 ▲3.95 |
Posts /wp-admin/edit.php | 2,233 ▲133 | 1.98 ▲0.04 | 38.69 ▼1.73 | 34.59 ▲0.08 |
Add New Post /wp-admin/post-new.php | 9,193 ▲7,662 | 26.25 ▲3.32 | 872.05 ▲251.62 | 58.56 ▲5.93 |
Media Library /wp-admin/upload.php | 1,454 ▲60 | 4.22 ▼0.04 | 98.94 ▼1.96 | 43.08 ▲0.36 |
Simple Location /wp-admin/options-general.php?page=simloc | 2,078 | 2.00 | 23.56 | 46.97 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=page | 1,344 | 2.25 | 29.63 | 31.41 |
All Venues /wp-admin/edit.php?post_type=venue | 1,142 | 1.90 | 29.41 | 29.52 |
Locations /wp-admin/edit-tags.php?taxonomy=location | 1,347 | 2.25 | 28.24 | 30.51 |
Types /wp-admin/edit-tags.php?taxonomy=venue_type&post_type=venue | 1,300 | 2.12 | 25.91 | 30.27 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=attachment | 1,344 | 2.25 | 29.30 | 31.62 |
Add New /wp-admin/post-new.php?post_type=venue | 9,135 | 19.43 | 861.67 | 31.51 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=venue | 1,344 | 2.25 | 29.25 | 30.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_sloc_airport_widget
- widget_recent-posts
- widget_sloc_weather_widget
- theysaidso_admin_options
- db_upgraded
- widget_sloc_lastseen_widget
- widget_sloc_station_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=venue
- > Notice in wp-content/plugins/simple-location/templates/loc-metabox.php+142
Undefined offset: 1
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simloc
- > Notice in wp-includes/general-template.php+5153
Array to string conversion
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
- 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Loc_Config' not found in wp-content/plugins/simple-location/templates/elevation-form.php:8
- > PHP Fatal error
Uncaught Error: Class 'Loc_Config' not found in wp-content/plugins/simple-location/templates/weather-form.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/simple-location/templates/timezone-metabox.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-location/includes/widgets/class-sloc-lastseen-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'Geo_Provider' not found in wp-content/plugins/simple-location/includes/geo/class-geo-provider-geonames.php:13
- > PHP Fatal error
Uncaught Error: Class 'Map_Provider' not found in wp-content/plugins/simple-location/includes/map/class-map-provider-google.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-location/includes/class-geo-base.php:8
- > PHP Fatal error
Uncaught Error: Class 'Geo_Provider' not found in wp-content/plugins/simple-location/includes/geo/class-geo-provider-mapquest.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-location/includes/class-location-plugins.php:21
- > PHP Fatal error
Uncaught Error: Class 'Map_Provider' not found in wp-content/plugins/simple-location/includes/map/class-map-provider-mapbox.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: location, timezones, weather, geo, indieweb...
simple-location/simple-location.php 92% from 13 tests
The main PHP script in "Simple Location" version 5.0.18 is automatically included on every request by WordPress
It is important to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin914,297 lines of code in 600 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 202 | 0 | 0 | 894,417 |
PHP | 94 | 1,867 | 5,471 | 15,051 |
SVG | 297 | 0 | 219 | 4,321 |
JavaScript | 3 | 45 | 8 | 425 |
CSS | 4 | 13 | 6 | 83 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 12 | |
Classes | 70 | |
▷ Abstract classes | 7 | 10.00% |
▷ Concrete classes | 63 | 90.00% |
▷ Final classes | 1 | 1.59% |
Methods | 647 | |
▷ Static methods | 351 | 54.25% |
▷ Public methods | 610 | 94.28% |
▷ Protected methods | 8 | 1.24% |
▷ Private methods | 29 | 4.48% |
Functions | 82 | |
▷ Named functions | 66 | 80.49% |
▷ Anonymous functions | 16 | 19.51% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin