Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▼14.87ms] Passed 4 tests
Server-side resources used by Events Manager - OpenStreetMaps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 32.67 ▼8.39 |
Dashboard /wp-admin | 4.04 ▲0.70 | 41.72 ▼20.93 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 44.29 ▼1.78 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 74.63 ▼28.39 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 40.22 ▲5.28 |
EM - OpenStreetMap /wp-admin/admin.php?page=stonehenge_em_osm | 4.03 | 37.14 |
More... /wp-admin/admin.php?page=stonehenge-plugins | 4.03 | 35.31 |
Free Support /wp-admin/admin.php?page=stonehenge_forums | 4.03 | 42.85 |
Server storage [IO: ▲4.48MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,183 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Events Manager - OpenStreetMaps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.29 ▼1.36 | 1.61 ▲0.01 | 40.45 ▲0.64 |
Dashboard /wp-admin | 2,235 ▲49 | 5.90 ▼0.03 | 104.54 ▼7.32 | 39.68 ▲0.12 |
Posts /wp-admin/edit.php | 2,115 ▲66 | 2.01 ▼0.06 | 40.71 ▲2.92 | 36.05 ▲3.83 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.15 ▼0.32 | 651.36 ▼15.38 | 48.67 ▼20.91 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.20 ▲0.06 | 97.41 ▼3.12 | 43.64 ▲0.20 |
EM - OpenStreetMap /wp-admin/admin.php?page=stonehenge_em_osm | 829 | 2.23 | 29.85 | 41.58 |
More... /wp-admin/admin.php?page=stonehenge-plugins | 1,040 | 2.22 | 27.24 | 44.42 |
Free Support /wp-admin/admin.php?page=stonehenge_forums | 905 | 2.32 | 29.63 | 47.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/stonehenge-em-osm/uninstall.php+13
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stonehenge_forums
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- > GET request to /wp-admin/admin.php?page=stonehenge_forums
- > Notice in wp-content/plugins/stonehenge-em-osm/stonehenge/class-forum.php+55
Undefined offset: 1
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/mustache/mustache/bin/build_bootstrap.php
- 297× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function show_hidden_fields() on null in wp-content/plugins/stonehenge-em-osm/templates/location-select.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/css-selector/Exception/ParseException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/translation/Loader/JsonFileLoader.php:21
- > PHP Warning
array_slice() expects parameter 1 to be array, null given in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/translation/Resources/bin/translation-status.php on line 54
- > PHP Fatal error
Uncaught Error: Interface 'Thunder\\Shortcode\\Processor\\ProcessorInterface' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/thunderer/shortcode/src/Processor/Processor.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/predicthq/address-formatter/tests/AddressObjectTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Config\\Definition\\Builder\umericNodeDefinition' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/config/Definition/Builder/IntegerNodeDefinition.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/css-selector/Node/SelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/symfony/translation/Dumper/MoFileDumper.php:22
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Panel' not found in wp-content/plugins/stonehenge-em-osm/stonehenge/server/Puc/v4p6/DebugBar/PluginPanel.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #6 (Apply filters to change markers and map tile server.) image not found
stonehenge-em-osm/stonehenge-em-osm.php Passed 13 tests
The principal PHP file in "Events Manager - OpenStreetMaps" v. 4.2.1 is loaded by WordPress automatically on each request
74 characters long description:
OpenStreetMap replacement for Events Manager. 0% Google, 100% Open Source.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/stonehenge-em-osm/stonehenge/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 533 | 8,660 | 15,716 | 44,015 |
JavaScript | 87 | 3,465 | 4,031 | 13,971 |
YAML | 290 | 975 | 601 | 7,942 |
XSD | 3 | 92 | 48 | 2,803 |
CSS | 14 | 132 | 89 | 2,325 |
Markdown | 31 | 678 | 0 | 1,824 |
JSON | 19 | 0 | 0 | 1,629 |
PO File | 17 | 418 | 422 | 1,469 |
LESS | 2 | 115 | 7 | 1,080 |
Mustache | 36 | 1 | 0 | 145 |
Perl | 1 | 14 | 8 | 98 |
XML | 4 | 5 | 0 | 97 |
make | 1 | 2 | 0 | 11 |
Dockerfile | 1 | 1 | 0 | 2 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 309.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 58 | |
Traits | 1 | |
Classes | 462 | |
▷ Abstract classes | 24 | 5.19% |
▷ Concrete classes | 438 | 94.81% |
▷ Final classes | 86 | 19.63% |
Methods | 2,646 | |
▷ Static methods | 227 | 8.58% |
▷ Public methods | 2,096 | 79.21% |
▷ Protected methods | 280 | 10.58% |
▷ Private methods | 270 | 10.20% |
Functions | 234 | |
▷ Named functions | 90 | 38.46% |
▷ Anonymous functions | 144 | 61.54% |
Constants | 137 | |
▷ Global constants | 5 | 3.65% |
▷ Class constants | 132 | 96.35% |
▷ Public constants | 125 | 94.70% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
44 compressed PNG files occupy 0.59MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/marker-icon-2x-violet.png | 1.95KB | 2.03KB | 0.00% |
assets/images/marker-icon-yellow.png | 0.98KB | 0.99KB | 0.00% |
assets/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/images/marker-icon.png | 0.94KB | 0.96KB | 0.00% |
stonehenge/assets/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |