Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.47MB] [CPU: ▼14.83ms] Passed 4 tests
A check of server-side resources used by Geolocation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.12 ▼7.66 |
Dashboard /wp-admin | 3.53 ▲0.22 | 46.71 ▼3.33 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.60 ▲2.78 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 36.84 ▼51.12 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.02 ▲3.58 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 17 new options
New WordPress options |
---|
geolocation_map_width_page |
geolocation_map_height |
geolocation_osm_tiles_url |
geolocation_map_display |
widget_recent-posts |
geolocation_map_position |
geolocation_map_width |
geolocation_provider |
geolocation_default_zoom |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Geolocation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.23 ▼1.15 | 1.75 ▼0.28 | 40.55 ▼5.56 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.99 | 105.15 ▼17.80 | 39.76 ▼10.08 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.12 ▲0.11 | 33.37 ▼4.88 | 36.26 ▲1.77 |
Add New Post /wp-admin/post-new.php | 6,359 ▲4,817 | 21.54 ▲3.28 | 988.33 ▲325.76 | 56.18 ▼6.69 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.24 ▼0.01 | 100.41 ▲3.63 | 44.72 ▲0.38 |
Geolocation /wp-admin/geolocation.php | 26 | 0.44 | 0.06 | 13.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/geolocation/geolocation.map-provider-osm.php on line 472
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/geolocation/geolocation.map-provider-osm.php on line 472
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/geolocation/geolocation.php:31
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/geolocation/geolocation.map-provider-osm.php on line 472
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/geolocation.php
- > Network (severe)
wp-admin/geolocation.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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
6 plugin tags: location, journey, gps, travel, openstreet map...
geolocation/geolocation.php Passed 13 tests
"Geolocation" version 1.9.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Displays post geotag information on an embedded map.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,446 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 151 | 384 | 1,756 |
CSS | 2 | 58 | 30 | 595 |
PO File | 1 | 47 | 48 | 94 |
JavaScript | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a very shot review of 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.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wp_pin.png | 1.42KB | 1.42KB | 0.00% |
js/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
img/globe.png | 0.91KB | 1.06KB | 0.00% |
js/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
img/icon.png | 0.86KB | 1.08KB | 0.00% |