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.17MB] [CPU: ▼6.23ms] Passed 4 tests
An overview of server-side resources used by Geo Masala
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 36.46 ▼6.87 |
Dashboard /wp-admin | 3.46 ▲0.11 | 45.57 ▼13.85 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 46.20 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 83.92 ▼3.07 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.97 ▲1.43 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
geom_version |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
geom_db_version |
db_upgraded |
Browser metrics Passed 4 tests
Geo Masala: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 14.76 ▲0.37 | 20.02 ▲17.80 | 41.75 ▼3.91 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▲0.03 | 111.28 ▼4.38 | 43.81 ▼2.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 44.54 ▲8.22 | 34.72 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6,206 ▲4,673 | 22.35 ▼0.79 | 894.21 ▲222.99 | 52.18 ▼14.88 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.14 ▼0.04 | 102.06 ▼8.47 | 41.32 ▼3.90 |
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 8 options in the database
- can_compress_scripts
- geom_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- geom_db_version
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: geo, gutenberg, gis, leaflet, block...
geo-masala/geo-masala.php 92% from 13 tests
The main PHP script in "Geo Masala" version 0.1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin1,400 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 257 | 288 | 1,055 |
SVG | 1 | 0 | 0 | 156 |
Markdown | 1 | 49 | 0 | 147 |
JavaScript | 6 | 0 | 0 | 38 |
CSS | 3 | 0 | 0 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 23.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 13 | 20.00% |
▷ Public methods | 54 | 83.08% |
▷ Protected methods | 10 | 15.38% |
▷ Private methods | 1 | 1.54% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/leaflet-fullscreen/icon-fullscreen-2x.png | 0.21KB | 0.24KB | 0.00% |
images/leaflet-draw/layers.png | 0.68KB | 1.05KB | 0.00% |
images/icon-center.png | 0.53KB | 0.70KB | 0.00% |
images/icon-cancel-2x.png | 1.41KB | 1.40KB | ▼ 0.76% |
images/leaflet-draw-toolbar/spritesheet-2x.png | 3.50KB | 2.20KB | ▼ 37.00% |