Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/web-maps-for-wp/lib/AGOLForWP/Class/AGOLforWPOptions.php+1128
Undefined index: std
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.49ms] Passed 4 tests
This is a short check of server-side resources used by Web Maps for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.17 ▲1.83 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.49 ▲2.07 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 44.16 ▼3.68 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 82.57 ▼14.19 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.39 ▲7.28 |
Server storage [IO: ▲8.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
agolforwp_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Web Maps for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲175 | 16.68 ▲2.47 | 17.10 ▲15.27 | 36.51 ▼2.63 |
Dashboard /wp-admin | 2,218 ▲43 | 6.21 ▲0.50 | 101.18 ▼1.15 | 39.61 ▲0.77 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.50 ▲0.47 | 51.16 ▲14.64 | 32.55 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6,274 ▲4,743 | 24.71 ▲1.61 | 941.67 ▲269.09 | 39.71 ▼12.75 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.39 ▲0.24 | 107.98 ▲10.87 | 47.48 ▲2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- agolforwp_options
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 21 tag instead of maximum 10
web-maps-for-wp/agol-for-wp.php 85% from 13 tests
The principal PHP file in "Web Maps for WordPress" v. 1.5 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 371 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("web-maps-for-wp.php" instead of "agol-for-wp.php")
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
Good job! No executable or dangerous file extensions detected7,409 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 1,398 | 3,346 | 4,433 |
CSS | 6 | 822 | 126 | 1,646 |
PHP | 3 | 856 | 174 | 906 |
Sass | 7 | 59 | 81 | 332 |
HTML | 1 | 9 | 0 | 80 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/prev.png | 0.49KB | 0.33KB | ▼ 33.60% |
assets/next.png | 0.50KB | 0.32KB | ▼ 36.15% |
assets/icon-256x256.png | 21.10KB | 7.43KB | ▼ 64.80% |
assets/icon-128x128.png | 10.27KB | 3.88KB | ▼ 62.23% |
assets/ago_default.png | 36.81KB | 15.64KB | ▼ 57.52% |