Benchmarks
Plugin footprint Passed 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.10MB] [CPU: ▼293.55ms] Passed 4 tests
A check of server-side resources used by GeoPlatform Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.20 | 56.20 ▲2.66 |
Dashboard /wp-admin | 3.54 ▲0.13 | 33.55 ▲0.90 |
Posts /wp-admin/edit.php | 3.76 ▲0.13 | 37.56 ▼1.30 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.05 | 95.57 ▼1,167.24 |
Media Library /wp-admin/upload.php | 3.42 ▲0.12 | 24.01 ▼6.54 |
GeoPlatform Maps /wp-admin/options-general.php?page=geoplatform-maps | 3.40 | 22.98 |
Server storage [IO: ▲2.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 55 new files
Database: 1 new table, no new options
New tables |
---|
wp_geop_maps_db |
Browser metrics Passed 4 tests
GeoPlatform Maps: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,944 ▲190 | 18.08 ▲2.17 | 35.52 ▲29.26 | 2.85 ▼0.39 |
Dashboard /wp-admin | 2,901 ▲43 | 6.08 ▼0.11 | 117.44 ▼16.54 | 161.39 ▲4.21 |
Posts /wp-admin/edit.php | 2,700 ▲9 | 3.25 ▲0.01 | 68.96 ▲5.63 | 138.31 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,667 ▼85 | 15.69 ▼5.36 | 417.88 ▼71.17 | 152.81 ▼1.35 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.57 ▲0.03 | 140.21 ▲4.21 | 183.48 ▲0.84 |
GeoPlatform Maps /wp-admin/options-general.php?page=geoplatform-maps | 1,116 | 2.44 | 54.89 | 101.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=geoplatform-maps
- > Notice in wp-content/plugins/geoplatform-maps/admin/partials/geoplatform-maps-admin-display.php+34
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/geoplatform-maps/public/partials/geoplatform-maps-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/geoplatform-maps/admin/partials/geoplatform-maps-admin-add-map.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/geoplatform-maps/admin/partials/geoplatform-maps-admin-display.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/geoplatform-maps/admin/partials/geoplatform-maps-admin-remove-map.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: open map, mapcore, shortcode, interactive, geoplatform...
geoplatform-maps/geoplatform-maps.php Passed 13 tests
The main PHP file in "GeoPlatform Maps" ver. 1.0.11 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
Manage your own personal database of GeoPlatform interactive maps and use shortcode to insert them into your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin23,956 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 4,624 | 5,902 | 17,194 |
SVG | 3 | 0 | 12 | 3,015 |
CSS | 7 | 1,023 | 79 | 2,978 |
PHP | 14 | 227 | 770 | 769 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img-404.png | 6.60KB | 3.20KB | ▼ 51.44% |