Benchmarks
Plugin footprint 83% 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.31MB] [CPU: ▼5.97ms] Passed 4 tests
Server-side resources used by Events Manager OpenStreetMap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 45.22 ▲7.07 |
Dashboard /wp-admin | 3.73 ▲0.42 | 50.37 ▲4.24 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 58.66 ▲14.11 |
Add New Post /wp-admin/post-new.php | 3.52 ▼2.37 | 46.72 ▼38.65 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 36.78 ▲3.45 |
Server storage [IO: ▲3.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 176 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
map_path_temp |
em_generate_map |
widget_theysaidso_widget |
em_openstreetmap_setting |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by Events Manager OpenStreetMap
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 14.43 ▲0.08 | 1.86 ▲0.27 | 41.47 ▲0.67 |
Dashboard /wp-admin | 2,327 ▲153 | 6.23 ▲0.56 | 104.83 ▲17.17 | 36.98 ▼2.72 |
Posts /wp-admin/edit.php | 2,266 ▲166 | 3.49 ▲1.47 | 56.96 ▲20.53 | 31.41 ▼4.06 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.42 ▼22.73 | 0.06 ▼687.96 | 9.43 ▼47.36 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.27 ▲0.03 | 90.73 ▼2.14 | 43.49 ▼2.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 10 options in the database
- db_upgraded
- map_path_temp
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- wp_calendar_block_has_published_posts
- em_generate_map
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/events-manager-openstreetmap/admin/settings.php
- > /wp-content/plugins/events-manager-openstreetmap/admin/home.php
- > /wp-content/plugins/events-manager-openstreetmap/events-manager-openstreetmap.php
- > /wp-content/plugins/events-manager-openstreetmap/includes/metabox.php
- > /wp-content/plugins/events-manager-openstreetmap/includes/map.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-manager-openstreetmap/includes/taxonomy.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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: These screenshots do not have images: #4 (Admin Settings Map), #5 (Categories Events Map)
events-manager-openstreetmap/events-manager-openstreetmap.php 92% from 13 tests
The main file in "Events Manager OpenStreetMap" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,797 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 483 | 223 | 2,206 |
JavaScript | 10 | 205 | 146 | 1,887 |
PO File | 1 | 283 | 395 | 432 |
CSS | 9 | 25 | 3 | 271 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 59.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 6 | 20.69% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
135 compressed PNG files occupy 2.95MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/qrcode.png | 200.57KB | 76.84KB | ▼ 61.69% |
images/markers/astrology.png | 1.57KB | 1.53KB | ▼ 2.55% |
images/markers/marker-new1_12.png | 1.34KB | 1.34KB | 0.00% |
images/markers/mobile-phones.png | 1.23KB | 1.24KB | 0.00% |
images/markers/engineering.png | 1.45KB | 1.46KB | 0.00% |