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.15MB] [CPU: ▼6.59ms] Passed 4 tests
An overview of server-side resources used by Google Map With Fancybox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 37.01 ▼3.79 |
Dashboard /wp-admin | 3.46 ▲0.12 | 46.08 ▼14.64 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 46.52 ▲3.02 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 94.41 ▼8.77 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.76 ▲0.86 |
Gallery /wp-admin/admin.php?page=location_piker_gallery | 3.35 | 30.52 |
Location Piker /wp-admin/admin.php?page=location | 3.33 | 32.76 |
Settings /wp-admin/admin.php?page=location_piker_setting | 3.35 | 30.79 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Map With Fancybox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.96 ▼0.46 | 9.86 ▲8.07 | 38.28 ▼5.17 |
Dashboard /wp-admin | 2,244 ▲56 | 5.80 ▼0.03 | 102.90 ▼12.03 | 38.28 ▼7.74 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.04 ▼0.01 | 40.27 ▲2.70 | 35.82 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.14 ▲4.98 | 651.74 ▲21.79 | 59.66 ▲5.76 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.37 ▲0.17 | 101.19 ▼5.75 | 43.06 ▼0.29 |
Gallery /wp-admin/admin.php?page=location_piker_gallery | 817 | 1.72 | 28.38 | 26.79 |
Location Piker /wp-admin/admin.php?page=location | 697 | 1.55 | 7.09 | 21.57 |
Settings /wp-admin/admin.php?page=location_piker_setting | 805 | 1.71 | 23.99 | 25.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/location-piker/admin/partials/location-piker-admin-display.php
- > /wp-content/plugins/location-piker/public/partials/location-piker-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/location-piker/admin/templates/location-piker-setting.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=location_piker_setting
- > Javascript (severe) in unknown
/wp-content/plugins/location-piker/admin/js/lokation-piker-bootstrap.min.js?ver=1.0.0 1:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
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
6 plugin tags: map, google map with fancybox popup, google map, google map with fancybox, location piker...
location-piker/location-piker.php Passed 13 tests
"Google Map With Fancybox" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
135 characters long description:
Location Piker plugin is awesome google map maker , easy to use for google map that’s able to display google map with fancybox popup.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,929 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 133 | 15 | 7,501 |
JavaScript | 7 | 1,720 | 388 | 3,708 |
PHP | 13 | 228 | 403 | 719 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 2 | 4.44% |
▷ Private methods | 5 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/inc/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
public/inc/fancy_loading.png | 9.96KB | 6.30KB | ▼ 36.67% |
public/inc/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
public/inc/fancybox.png | 14.93KB | 8.47KB | ▼ 43.29% |