Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.44ms] Passed 4 tests
Server-side resources used by f(x) Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.96 ▲2.56 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.52 ▼4.30 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.46 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 93.46 ▼6.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.22 ▲2.61 |
Maps /wp-admin/options-general.php?page=fx-maps | 3.24 | 41.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
fx-maps_welcome |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
f(x) Maps: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.72 ▲0.13 | 1.67 ▼0.14 | 44.62 ▼0.64 |
Dashboard /wp-admin | 2,214 ▲34 | 5.58 ▼0.14 | 97.60 ▲0.70 | 45.67 ▼0.54 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.00 ▼0.03 | 35.22 ▼1.66 | 35.92 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.29 ▲0.39 | 688.06 ▼35.96 | 59.76 ▲5.61 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.19 ▲0.04 | 103.79 ▼9.50 | 43.99 ▼1.72 |
Maps /wp-admin/options-general.php?page=fx-maps | 1,641 | 6.56 | 147.41 | 118.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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)
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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=fx-maps
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&ver=3.exp 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/options-general.php?page=fx-maps
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&ver=3.exp 164:311 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: maps, location, google maps, locations
fx-maps/fx-maps.php Passed 13 tests
Analyzing the main PHP file in "f(x) Maps" version 1.0.0
63 characters long description:
Simple way to display your business location using Google Maps.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin673 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 124 | 249 | 434 |
JavaScript | 3 | 39 | 76 | 181 |
CSS | 3 | 1 | 12 | 45 |
Markdown | 1 | 4 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/settings/assets/fx-gmaps/mylocation.png | 3.30KB | 1.96KB | ▼ 40.66% |