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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼7.35ms] Passed 4 tests
An overview of server-side resources used by Supreme Maps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 39.81 ▼9.22 |
Dashboard /wp-admin | 3.51 ▲0.17 | 52.78 ▼12.10 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 48.10 ▼3.19 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 93.02 ▼4.90 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.10 ▼2.26 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
supreme_maps_version |
Browser metrics Passed 4 tests
Supreme Maps: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.23 ▼0.30 | 1.76 ▼0.21 | 37.04 ▼4.65 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.05 | 83.15 ▼3.61 | 38.30 ▼1.33 |
Posts /wp-admin/edit.php | 2,100 ▼5 | 2.02 ▲0.03 | 38.59 ▲1.60 | 35.56 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.09 ▲5.11 | 612.25 ▲3.31 | 55.05 ▼7.22 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.14 ▼0.07 | 99.00 ▼6.50 | 43.86 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- supreme_maps_version
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-maps/includes/modules/LeafletMap/LeafletMap.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-maps/includes/modules/LeafletMapItem/LeafletMapItem.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-maps/includes/modules/GoogleMap/GoogleMap.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-maps/includes/modules/GoogleMapItem/GoogleMapItem.php:3
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/supreme-maps/includes/SupremeMaps.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in supreme-maps/assets to your readme.txt
supreme-maps/supreme-maps.php Passed 13 tests
The primary PHP file in "Supreme Maps" version 1.0.9 is used by WordPress to initiate all plugin functionality
78 characters long description:
Display beautiful and mobile-friendly interactive maps for your Divi websites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,803 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 327 | 754 | 2,749 |
CSS | 5 | 149 | 28 | 585 |
JavaScript | 7 | 190 | 261 | 441 |
SVG | 1 | 0 | 1 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 2 | 3.17% |
▷ Public methods | 60 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |