Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.29ms] Passed 4 tests
Analyzing server-side resources used by Stylish Google Map
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.47 ▲0.40 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.32 ▼1.78 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.84 ▼2.50 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 94.54 ▼6.85 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.99 ▼2.03 |
Add New /wp-admin/post-new.php?post_type=stylish-google-map | 3.33 | 40.76 |
Stylish Google Maps /wp-admin/edit.php?post_type=stylish-google-map | 3.36 | 38.03 |
SGM Settings /wp-admin/edit.php?post_type=stylish-google-map&page=sgm | 3.26 | 39.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_stylish_google_map |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Stylish Google Map
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.74 ▲1.21 | 2.10 ▲0.34 | 39.21 ▼4.17 |
Dashboard /wp-admin | 2,228 ▲40 | 5.85 ▲0.73 | 100.26 ▼11.81 | 72.87 ▲29.82 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 1.97 ▼0.08 | 38.28 ▼4.96 | 34.85 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 17.53 ▼5.68 | 699.74 ▲24.53 | 58.54 ▲5.12 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.21 ▼0.01 | 101.68 ▼17.11 | 64.42 ▲16.37 |
Add New /wp-admin/post-new.php?post_type=stylish-google-map | 1,599 | 2.52 | 50.17 | 63.22 |
Stylish Google Maps /wp-admin/edit.php?post_type=stylish-google-map | 1,090 | 1.96 | 33.41 | 30.40 |
SGM Settings /wp-admin/edit.php?post_type=stylish-google-map&page=sgm | 844 | 2.05 | 25.89 | 29.97 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_stylish_google_map
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=stylish-google-map
- > Deprecated in wp-admin/includes/template.php+1443
Non-static method SGM_Meta_Box::sgm_shortcode_metabox_html() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=stylish-google-map
- > Notice in wp-content/plugins/stylish-google-map/sgm_main.php+242
Undefined index: post
- > GET request to /wp-admin/edit.php?post_type=stylish-google-map&page=sgm
- > Notice in wp-content/plugins/stylish-google-map/sgm_main.php+117
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/stylish-google-map/stylish-google-map.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stylish-google-map/sgm_widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/stylish-google-map/sgm_template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-google-map/sgm_main.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/stylish-google-map/sgm_widget_template.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: simple map, google, maps, map, map plugin
stylish-google-map/stylish-google-map.php Passed 13 tests
This is the main PHP file of "Stylish Google Map" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
Very simple way to add stylish google map to your wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin560 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 113 | 181 | 520 |
JavaScript | 1 | 2 | 12 | 25 |
CSS | 2 | 1 | 4 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 3 | 33.33% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/plugin_icon.png | 1.23KB | 0.46KB | ▼ 62.34% |
images/map_point.png | 1.39KB | 0.67KB | ▼ 51.68% |