Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.53MB] [CPU: ▼22.21ms] Passed 4 tests
Server-side resources used by Layer Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.89 ▼0.89 |
Dashboard /wp-admin | 3.46 ▲0.15 | 35.77 ▼13.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 32.73 ▼13.92 |
Add New Post /wp-admin/post-new.php | 3.41 ▼2.48 | 38.79 ▼60.14 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.23 ▲4.57 |
Maps /wp-admin/edit.php?post_type=layermaps_map | 3.39 | 32.26 |
Settings /wp-admin/edit.php?post_type=layermaps_map&page=layermaps_settings | 3.46 | 28.59 |
Pins /wp-admin/edit.php?post_type=layermaps_pin | 3.39 | 29.02 |
Import /wp-admin/edit.php?post_type=layermaps_map&page=layermaps_import | 3.43 | 31.94 |
Layers /wp-admin/edit-tags.php?taxonomy=layermaps_layer&post_type=layermaps_map | 3.45 | 31.94 |
Server storage [IO: ▲6.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 677 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Layer Maps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲238 | 14.81 ▲0.56 | 30.15 ▲28.31 | 41.00 ▲0.91 |
Dashboard /wp-admin | 2,252 ▲64 | 5.82 ▲0.92 | 114.63 ▼2.06 | 43.84 ▲3.65 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.06 ▲0.02 | 40.88 ▲1.37 | 35.26 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,553 ▲11 | 23.39 ▲5.14 | 610.90 ▲1.88 | 50.32 ▼3.11 |
Media Library /wp-admin/upload.php | 1,437 ▲55 | 4.18 ▼0.04 | 104.79 ▲1.36 | 43.57 ▼1.55 |
Maps /wp-admin/edit.php?post_type=layermaps_map | 1,113 | 1.93 | 31.62 | 29.37 |
Settings /wp-admin/edit.php?post_type=layermaps_map&page=layermaps_settings | 853 | 2.04 | 27.71 | 28.20 |
Pins /wp-admin/edit.php?post_type=layermaps_pin | 1,121 | 1.95 | 31.05 | 32.89 |
Import /wp-admin/edit.php?post_type=layermaps_map&page=layermaps_import | 840 | 2.03 | 24.69 | 29.55 |
Layers /wp-admin/edit-tags.php?taxonomy=layermaps_layer&post_type=layermaps_map | 1,358 | 2.13 | 28.29 | 26.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=layermaps_map&page=layermaps_import
- > Notice in wp-content/plugins/layer-maps/includes/admin/class-lm-admin.php+515
Undefined index: lm_map
- > GET request to /wp-admin/edit-tags.php?taxonomy=layermaps_layer&post_type=layermaps_map
- > Notice in wp-content/plugins/layer-maps/includes/admin/class-lm-admin.php+300
Trying to get property 'term_id' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 94× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/02types.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/10autofilter-selection-2.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/18extendedcalculation.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/09pagebreaks.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/OOCalcReader.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/13calculation.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/GnumericReader.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/03formulas.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/42richText.php
- > /wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Examples/06largescale-with-cellcaching.php
- 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Worksheet.php on line 1118
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/layer-maps/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DefaultValueBinder.php on line 90
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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: marker maps, kml layer, quick maps, mapping, geocode...
layer-maps/layer-maps.php Passed 13 tests
"Layer Maps" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Simple Google Maps plugin to create layers, add pins and display mapping data.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin70,427 lines of code in 378 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 351 | 15,244 | 41,290 | 65,137 |
JSON | 6 | 1 | 0 | 2,345 |
JavaScript | 4 | 327 | 523 | 1,155 |
HTML | 5 | 171 | 0 | 752 |
XML | 6 | 1 | 0 | 534 |
Markdown | 3 | 74 | 0 | 334 |
CSS | 2 | 14 | 4 | 154 |
YAML | 1 | 4 | 0 | 16 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,177)
- Method cyclomatic complexity should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 42.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,177.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 253 | |
▷ Abstract classes | 9 | 3.56% |
▷ Concrete classes | 244 | 96.44% |
▷ Final classes | 0 | 0.00% |
Methods | 3,552 | |
▷ Static methods | 636 | 17.91% |
▷ Public methods | 2,987 | 84.09% |
▷ Protected methods | 76 | 2.14% |
▷ Private methods | 489 | 13.77% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 928 | |
▷ Global constants | 231 | 24.89% |
▷ Class constants | 697 | 75.11% |
▷ Public constants | 697 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/green_marker.png | 3.13KB | 0.39KB | ▼ 87.60% |
assets/images/icons/blue_marker.png | 1.32KB | 0.39KB | ▼ 70.57% |
assets/images/icons/red_marker.png | 3.13KB | 0.39KB | ▼ 87.62% |
assets/js/vendor/js-marker-clusterer/images/heart30.png | 1.41KB | 1.46KB | 0.00% |
assets/images/filter-checked.png | 1.11KB | 0.21KB | ▼ 80.86% |