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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.50ms] Passed 4 tests
A check of server-side resources used by Maps for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.83 ▲1.66 |
Dashboard /wp-admin | 3.35 ▲0.00 | 51.59 ▼15.49 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 52.29 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.96 ▲4.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.73 ▲2.21 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 18 new options
New WordPress options |
---|
mfwp_map_from |
mfwp_zoom_ManyPoints |
can_compress_scripts |
widget_recent-posts |
mfwp_style_map |
widget_theysaidso_widget |
mfwp_gapikey |
mfwp_center_lon_ManyPoints |
mfwp_version |
mfwp_type_map |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Maps for WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,011 ▲250 | 15.44 ▲1.12 | 26.29 ▲24.63 | 44.87 ▲6.20 |
Dashboard /wp-admin | 2,357 ▲180 | 6.18 ▲0.61 | 118.43 ▲26.44 | 37.35 ▼1.41 |
Posts /wp-admin/edit.php | 2,285 ▲182 | 3.37 ▲1.35 | 51.87 ▲10.22 | 34.26 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.24 ▲0.25 | 641.68 ▲15.17 | 37.12 ▼25.08 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.16 ▼0.08 | 81.97 ▼20.92 | 45.30 ▲0.65 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
maps-for-wp/maps-for-wp.php 92% from 13 tests
This is the main PHP file of "Maps for WP" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4.2" instead of "4.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,232 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 50 | 128 | 859 |
JavaScript | 3 | 26 | 53 | 209 |
PO File | 1 | 73 | 85 | 149 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 54.50 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 8.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 145.11KB | 53.73KB | ▼ 62.97% |
img/no-img.png | 8.75KB | 5.04KB | ▼ 42.45% |
img/marker.png | 1.74KB | 0.76KB | ▼ 56.13% |