Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▼1.65ms] Passed 4 tests
Analyzing server-side resources used by WP Geo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.65 | 46.58 ▲5.92 |
Dashboard /wp-admin | 4.12 ▲0.82 | 50.95 ▲0.41 |
Posts /wp-admin/edit.php | 4.23 ▲0.88 | 47.87 ▼2.66 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 98.04 ▼10.25 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 42.63 ▲11.00 |
WP Geo /wp-admin/options-general.php?page=wp-geo | 4.01 | 35.52 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
wp_geo_options |
widget_wpgeo_contextual_map_widget |
can_compress_scripts |
widget_wpgeo_category_map_widget |
wp_geo_show_version_msg |
theysaidso_admin_options |
widget_wpgeo_recent_locations_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Geo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲174 | 14.60 ▼0.00 | 25.37 ▲23.27 | 37.35 ▼10.85 |
Dashboard /wp-admin | 2,212 ▲27 | 5.81 ▼0.09 | 97.96 ▲0.81 | 35.57 ▼3.21 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▲0.00 | 33.94 ▼1.41 | 33.11 ▼0.78 |
Add New Post /wp-admin/post-new.php | 11,481 ▲9,938 | 22.10 ▲3.58 | 1,138.45 ▲517.72 | 50.97 ▲4.30 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.37 ▲0.14 | 93.86 ▼2.90 | 41.65 ▼1.28 |
WP Geo /wp-admin/options-general.php?page=wp-geo | 1,336 | 2.18 | 25.11 | 33.95 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 12 options in the database
- wp_geo_version
- widget_recent-comments
- widget_wpgeo_recent_locations_widget
- wp_geo_options
- wp_geo_show_version_msg
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_wpgeo_contextual_map_widget
- widget_wpgeo_category_map_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WPGeo_Widget' not found in wp-content/plugins/wp-geo/widgets/category-map.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-geo/includes/shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-geo/widgets/wpgeo-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPGeo_Widget' not found in wp-content/plugins/wp-geo/widgets/recent-locations.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-geo/admin/dashboard.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-geo/admin/donate-links.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPGeo_Widget' not found in wp-content/plugins/wp-geo/widgets/contextual-map.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPGeo_API' not found in wp-content/plugins/wp-geo/api/googlemapsv3/googlemapsv3.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-geo/wp-geo.php:22
- > PHP Fatal error
Uncaught Error: Class 'WPGeo_API' not found in wp-content/plugins/wp-geo/api/googlemapsv2/googlemapsv2.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
7 plugin tags: maps, map, location, geo, georss...
wp-geo/wp-geo.php Passed 13 tests
Analyzing the main PHP file in "WP Geo" version 3.5.1
62 characters long description:
Adds location maps to your posts, pages and custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin6,992 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 641 | 1,622 | 3,168 |
PO File | 13 | 1,278 | 1,706 | 3,127 |
JavaScript | 7 | 143 | 160 | 591 |
CSS | 1 | 6 | 21 | 106 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 231 | |
▷ Static methods | 1 | 0.43% |
▷ Public methods | 231 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 31 | 91.18% |
▷ Anonymous functions | 3 | 8.82% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo/wp-geo.png | 2.81KB | 1.57KB | ▼ 44.22% |
img/logo/icon32.png | 2.23KB | 1.38KB | ▼ 38.17% |
img/markers/dot-marker.png | 1.32KB | 0.20KB | ▼ 84.84% |
img/markers/dot-marker-shadow.png | 1.27KB | 0.16KB | ▼ 87.73% |
img/markers/large-marker.png | 2.12KB | 1.10KB | ▼ 48.02% |