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.23MB] [CPU: ▼19.74ms] Passed 4 tests
Analyzing server-side resources used by Nelio Maps
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.23 ▼3.82 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.45 ▲3.15 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.74 ▼2.09 |
Add New Post /wp-admin/post-new.php | 4.85 ▼1.03 | 54.90 ▼76.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.90 ▲4.74 |
Nelio Maps /wp-admin/options-general.php?page=nelio-maps | 3.23 | 32.84 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
nelio_maps_api_key_option |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Nelio Maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 13.99 ▼0.54 | 26.21 ▲24.58 | 44.50 ▲4.56 |
Dashboard /wp-admin | 2,202 ▲21 | 5.59 ▼0.08 | 87.61 ▼18.73 | 39.11 ▼5.18 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.04 | 35.67 ▼11.25 | 33.49 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,489 ▼37 | 20.53 ▼2.93 | 718.26 ▲47.18 | 68.13 ▲10.10 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.02 | 94.65 ▼10.35 | 40.87 ▼1.52 |
Nelio Maps /wp-admin/options-general.php?page=nelio-maps | 788 | 2.00 | 25.70 | 28.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- nelio_maps_api_key_option
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: gutenberg, map, block, google maps
nelio-maps/nelio-maps.php Passed 13 tests
The primary PHP file in "Nelio Maps" version 1.0.2 is used by WordPress to initiate all plugin functionality
53 characters long description:
Simple and beautiful Google Maps block for WordPress.
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
Success! There were no dangerous files found in this plugin18,567 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 17,095 |
JavaScript | 22 | 250 | 128 | 954 |
PHP | 6 | 66 | 29 | 184 |
XML | 1 | 3 | 56 | 140 |
Sass | 3 | 32 | 0 | 124 |
Markdown | 1 | 25 | 0 | 50 |
SVG | 1 | 0 | 0 | 14 |
YAML | 1 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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.57 |
▷ 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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
packages/blocks/google-map/map-styles/light.png | 6.27KB | 3.55KB | ▼ 43.31% |
packages/blocks/google-map/map-styles/default.png | 15.02KB | 6.10KB | ▼ 59.37% |
packages/blocks/google-map/map-styles/custom.png | 0.11KB | 0.11KB | 0.00% |
packages/blocks/google-map/map-styles/dawn.png | 7.85KB | 3.60KB | ▼ 54.13% |
packages/blocks/google-map/map-styles/dark.png | 6.10KB | 3.65KB | ▼ 40.09% |