Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.92MB] [CPU: ▼34.17ms] Passed 4 tests
An overview of server-side resources used by Geo hCard Map
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 24.34 ▼18.85 |
Dashboard /wp-admin | 3.02 ▼0.28 | 25.08 ▼24.16 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 28.29 ▼23.19 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.86 | 25.92 ▼70.46 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 22.35 ▼14.53 |
GEO hCard Map /wp-admin/options-general.php?page=geo-hcard-map | 3.03 | 27.87 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
geo-hcard-map_show_activation_message |
Browser metrics Passed 4 tests
An overview of browser requirements for Geo hCard Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 14.28 ▼0.07 | 13.92 ▲11.88 | 39.76 ▼4.32 |
Dashboard /wp-admin | 2,244 ▲67 | 5.60 ▲0.03 | 88.22 ▼14.52 | 40.40 ▼3.56 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.00 ▼0.00 | 42.09 ▲4.22 | 37.72 ▲3.45 |
Add New Post /wp-admin/post-new.php | 1,578 ▲50 | 23.16 ▲0.05 | 671.69 ▼30.44 | 57.51 ▲6.37 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.24 ▲0.03 | 99.73 ▼9.34 | 47.81 ▲0.34 |
GEO hCard Map /wp-admin/options-general.php?page=geo-hcard-map | 851 | 1.81 | 24.05 | 26.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- geo-hcard-map_show_activation_message
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=geo-hcard-map
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: location, map, vcard, hcard, leaflet...
geo-hcard-map/geo-hcard-map.php Passed 13 tests
"Geo hCard Map" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Creates a map from the hCard markup (.vcard) in the current webpage at shortcode [geo_hcard_map]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,247 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 2,658 | 3,242 | 7,549 |
CSS | 3 | 54 | 22 | 569 |
PHP | 1 | 22 | 14 | 122 |
Markdown | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/marker.png | 1.43KB | 1.55KB | 0.00% |
images/blue-bicycle-shadow.png | 0.66KB | 0.54KB | ▼ 17.59% |
images/shiny-silver-star.png | 3.01KB | 1.88KB | ▼ 37.75% |
leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
images/gray-green.png | 2.84KB | 2.00KB | ▼ 29.87% |