Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests
This is a short check of server-side resources used by Meks Easy Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.90 ▲1.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.80 ▼3.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.16 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.69 ▼13.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.16 ▲0.27 |
Meks Easy Maps /wp-admin/options-general.php?page=meks-easy-maps | 3.22 | 31.74 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Meks Easy Maps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲52 | 13.39 ▼1.03 | 1.82 ▼0.12 | 46.55 ▲6.72 |
Dashboard /wp-admin | 2,223 ▲34 | 5.11 ▼0.77 | 109.56 ▼4.45 | 40.73 ▼4.12 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.31 ▲0.27 | 44.29 ▲1.15 | 34.91 ▼5.05 |
Add New Post /wp-admin/post-new.php | 6,268 ▲4,735 | 26.31 ▲3.29 | 970.21 ▲348.33 | 46.92 ▼3.58 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.42 ▲0.20 | 99.93 ▼3.17 | 44.34 ▲3.29 |
Meks Easy Maps /wp-admin/options-general.php?page=meks-easy-maps | 843 | 2.01 | 28.36 | 24.72 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/admin/enqueue.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/public/map.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/admin/category-metabox-map.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-maps/admin/post-metabox-map.php:4
- > 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: google map, map, destination, location, pin
meks-easy-maps/meks-easy-maps.php Passed 13 tests
"Meks Easy Maps" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Assign locations to your posts or categories and display it automatically with Google Maps.
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
No dangerous file extensions were detected7,810 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 1,421 | 1,067 | 5,448 |
PHP | 7 | 407 | 328 | 1,370 |
CSS | 6 | 105 | 33 | 922 |
PO File | 1 | 22 | 28 | 70 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/img/search@2x-disabled.png | 0.38KB | 0.19KB | ▼ 50.26% |
public/img/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
admin/js/img/search@2x.png | 0.75KB | 0.85KB | 0.00% |
admin/js/img/search-disabled.png | 0.38KB | 0.19KB | ▼ 50.26% |
public/img/layers.png | 0.68KB | 1.05KB | 0.00% |