Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.35ms] Passed 4 tests
Server-side resources used by Modest Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.67 ▼1.09 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.76 ▼0.26 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.26 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.36 ▲3.23 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.06 ▼2.83 |
Server storage [IO: ▲15.03MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Modest Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,377 ▲1,642 | 15.70 ▲1.39 | 1.91 ▼0.32 | 42.29 ▼3.50 |
Dashboard /wp-admin | 3,749 ▲1,564 | 5.94 ▲0.07 | 144.79 ▲41.41 | 40.92 ▲2.45 |
Posts /wp-admin/edit.php | 3,311 ▲1,219 | 3.71 ▲1.71 | 61.31 ▲16.66 | 35.82 ▼4.29 |
Add New Post /wp-admin/post-new.php | 2,697 ▲1,155 | 17.19 ▼1.33 | 604.10 ▼31.93 | 30.99 ▼23.99 |
Media Library /wp-admin/upload.php | 2,119 ▲740 | 4.49 ▲0.26 | 112.74 ▲15.56 | 43.68 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/modest-map/public/partials/modest-map-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/modest-map/admin/partials/modest-map-admin-display.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: openstreetmap, map, gdpr, maps
modest-map/modest-map.php Passed 13 tests
This is the main PHP file of "Modest Map" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Self-hosted GDPR compliant map without tracking.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,557 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 4,274 |
JavaScript | 4 | 76 | 7 | 1,386 |
CSS | 3 | 55 | 30 | 576 |
PHP | 13 | 137 | 483 | 304 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
7 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
public/style/sprite.png | 72.73KB | 31.50KB | ▼ 56.68% |
admin/css/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
admin/css/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
admin/css/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |