Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.03ms] Passed 4 tests
An overview of server-side resources used by WP Web Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.07 | 41.38 ▼0.92 |
Dashboard /wp-admin | 3.71 ▲0.08 | 51.19 ▼22.17 |
Posts /wp-admin/edit.php | 3.76 ▲0.08 | 50.69 ▼5.15 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.16 | 90.58 ▼7.89 |
Media Library /wp-admin/upload.php | 3.57 ▲0.08 | 44.07 ▲4.80 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=webmaps | 3.56 | 38.88 |
Web Maps /wp-admin/edit.php?post_type=webmaps | 3.62 | 40.06 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=webmaps | 3.56 | 41.30 |
Add New /wp-admin/post-new.php?post_type=webmaps | 6.30 | 87.42 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
category_children |
Browser metrics Passed 4 tests
A check of browser resources used by WP Web Maps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 14.25 ▼0.12 | 1.94 ▲0.01 | 43.20 ▼2.08 |
Dashboard /wp-admin | 2,245 ▲65 | 5.64 ▼0.02 | 85.02 ▼4.63 | 41.81 ▼3.31 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.05 ▲0.00 | 36.05 ▼6.85 | 30.58 ▼8.83 |
Add New Post /wp-admin/post-new.php | 1,570 ▲39 | 23.54 ▲0.40 | 652.17 ▲13.13 | 53.19 ▼2.26 |
Media Library /wp-admin/upload.php | 1,450 ▲47 | 4.19 ▼0.07 | 100.52 ▼5.37 | 48.59 ▲4.07 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=webmaps | 1,366 | 2.14 | 27.13 | 30.80 |
Web Maps /wp-admin/edit.php?post_type=webmaps | 1,166 | 1.96 | 31.22 | 30.53 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=webmaps | 1,505 | 2.18 | 34.84 | 37.44 |
Add New /wp-admin/post-new.php?post_type=webmaps | 6,223 | 19.32 | 912.73 | 37.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- category_children
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-web-maps/wp-web-maps.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-web-maps/templates/tmplt_geojson.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: openstreetmap, mobile, gis, map, leafletjs...
wp-web-maps/wp-web-maps.php Passed 13 tests
The entry point to "WP Web Maps" version 0.2.2 is a PHP file that has certain tags in its header comment area
68 characters long description:
A plugin for creating a interactive Leaflet JS map with a shortcode.
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
There were no executable files found in this plugin1,273 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 53 | 24 | 563 |
JavaScript | 7 | 78 | 57 | 374 |
PHP | 3 | 51 | 112 | 300 |
Markdown | 2 | 10 | 0 | 36 |
PHP code Passed 2 tests
An short overview of 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.35 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
vendor/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |