Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.23ms] Passed 4 tests
A check of server-side resources used by Mona HERE map Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.89 ▲1.86 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.30 ▼1.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.74 ▼3.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.85 ▲2.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.23 ▲7.37 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mona HERE map Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.24 ▼1.38 | 1.88 ▲0.11 | 41.46 ▼0.61 |
Dashboard /wp-admin | 2,225 ▲37 | 4.87 ▼0.99 | 99.57 ▼4.53 | 39.78 ▼1.34 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.02 | 38.09 ▼2.33 | 33.89 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 18.35 ▼4.79 | 599.56 ▼83.42 | 65.18 ▲9.50 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.19 ▼0.02 | 95.11 ▼11.34 | 43.08 ▼3.91 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/mona-here-map-embed/mona-here-map-embed.php
- > /wp-content/plugins/mona-here-map-embed/templates/footer.php
- > /wp-content/plugins/mona-here-map-embed/templates/header.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mona-here-map-embed/templates/home.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: location, maps, here map, shortcode, mapping...
mona-here-map-embed/mona-here-map-embed.php Passed 13 tests
This is the main PHP file of "Mona HERE map Embed" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
113 characters long description:
This simple but powerful plugin will help you sharing information about your favorite places and to display maps.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,103 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,084 | 8 | 4,811 |
PHP | 4 | 39 | 33 | 188 |
JavaScript | 2 | 26 | 10 | 104 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/map-marker.png | 2.07KB | 2.10KB | 0.00% |