Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼139.53ms] Passed 4 tests
Analyzing server-side resources used by Dimme Googlemap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 38.19 ▲14.29 |
Dashboard /wp-admin | 3.17 ▲0.12 | 44.56 ▼1.84 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 48.45 ▲6.15 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.09 | 98.70 ▼562.90 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 36.12 ▲0.49 |
googlemap /wp-admin/edit.php?post_type=googlemap | 3.02 | 30.18 |
Dimme Googlemap /wp-admin/options-general.php?page=dimme_googlemaps_admin_init | 3.09 | 32.54 |
Add googlemap /wp-admin/post-new.php?post_type=googlemap | 3.31 | 55.07 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=googlemap | 3.10 | 40.35 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_dimme_googlemaps |
New WordPress options |
---|
category_children |
dimme_googlemaps_db_version |
Browser metrics Passed 4 tests
Dimme Googlemap: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,902 ▲306 | 17.76 ▲2.15 | 16.93 ▲7.69 | 52.51 ▲4.50 |
Dashboard /wp-admin | 3,023 ▲88 | 7.27 ▲1.31 | 142.09 ▼21.77 | 114.57 ▼8.79 |
Posts /wp-admin/edit.php | 2,792 ▲53 | 3.16 ▲0.47 | 79.99 ▲15.72 | 112.10 ▲19.37 |
Add New Post /wp-admin/post-new.php | 1,655 ▼28 | 22.58 ▲3.81 | 294.29 ▼81.59 | 129.15 ▲13.39 |
Media Library /wp-admin/upload.php | 1,863 ▲53 | 5.91 ▲0.88 | 143.90 ▼9.24 | 120.66 ▼6.55 |
googlemap /wp-admin/edit.php?post_type=googlemap | 1,533 | 3.17 | 75.76 | 90.80 |
Dimme Googlemap /wp-admin/options-general.php?page=dimme_googlemaps_admin_init | 1,248 | 2.98 | 65.74 | 87.93 |
Add googlemap /wp-admin/post-new.php?post_type=googlemap | 4,057 | 12.80 | 333.19 | 242.54 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=googlemap | 1,963 | 2.99 | 68.73 | 95.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_dimme_googlemaps
- This plugin does not fully uninstall, leaving 2 options in the database
- dimme_googlemaps_db_version
- category_children
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=googlemap
- > Warning in wp-content/plugins/dimme-googlemaps/class.dimme-googlemaps.php+238
in_array() expects parameter 2 to be array, bool given
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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/dimme-googlemaps/archive-googlemap.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/dimme-googlemaps/dimme-googlemaps-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dimme-googlemaps/class.dimme-googlemaps.php:40
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/dimme-googlemaps/googlemap.php on line 76
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=googlemap
- > Network (severe)
http://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/post-new.php?post_type=googlemap
- > Console-api (warning) in unknown
http://maps.google.com/maps-api-v3/api/js/47/1/util.js 250:27 "Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys"
- > GET request to /wp-admin/post-new.php?post_type=googlemap
- > Console-api (warning) in unknown
http://maps.google.com/maps-api-v3/api/js/47/1/util.js 250:27 "Google Maps JavaScript API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required"
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== dimme-googlemaps ===
)
dimme-googlemaps/dimme-googlemaps.php Passed 13 tests
The main PHP file in "Dimme Googlemap" ver. 0.3.2 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Googlemap plugin using custom post types.
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
Good job! No executable or dangerous file extensions detected943 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 94 | 136 | 618 |
JavaScript | 3 | 29 | 9 | 321 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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 |
icons/information-single.png | 0.86KB | 0.62KB | ▼ 27.40% |
icons/information.png | 0.78KB | 0.62KB | ▼ 20.70% |