Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.94MB] [CPU: ▼63.63ms] Passed 4 tests
Analyzing server-side resources used by TakeMeThere
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.61 ▼47.12 |
Dashboard /wp-admin | 2.08 ▼1.27 | 6.21 ▼59.62 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.54 ▼51.58 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 8.44 ▼96.20 |
Media Library /wp-admin/upload.php | 2.08 ▼1.16 | 6.09 ▼30.45 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 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 TakeMeThere
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲131 | 15.07 ▲1.05 | 8.87 ▲6.71 | 43.08 ▲0.48 |
Dashboard /wp-admin | 2,197 ▲20 | 5.69 ▲0.04 | 85.52 ▼6.52 | 40.30 ▼1.87 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.76 ▲0.75 | 38.90 ▼3.30 | 36.65 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 18.31 ▼0.03 | 640.69 ▲5.17 | 57.96 ▼23.09 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 5.25 ▲1.03 | 102.97 ▼5.35 | 43.90 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 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 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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/takemethere/takemethere.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: map, gis, leaflet
takemethere/takemethere.php Passed 13 tests
The main PHP file in "TakeMeThere" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Plugin Based on leaflet.js and nominatim openstreetmap API for locating a place on MAP
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected8,347 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,641 | 3,207 | 7,412 |
CSS | 3 | 121 | 44 | 887 |
PHP | 1 | 16 | 8 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
js/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
js/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
js/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
js/leaflet/images/marker-icon-2x.png | 2.53KB | 2.52KB | 0.39% |