Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.04ms] Passed 4 tests
Analyzing server-side resources used by Nearby Map by Wabeo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 43.49 ▼2.15 |
Dashboard /wp-admin | 3.49 ▲0.19 | 55.29 ▲7.85 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 51.56 ▲5.74 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 86.79 ▼14.37 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.86 ▲2.64 |
Add place /wp-admin/post-new.php?post_type=places | 3.53 | 57.00 |
All places /wp-admin/edit.php?post_type=places | 3.46 | 41.02 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/nearby-map/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Nearby Map by Wabeo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.20 ▼1.19 | 2.21 ▲0.44 | 45.72 ▲1.53 |
Dashboard /wp-admin | 2,251 ▲44 | 5.87 ▲0.92 | 108.74 ▼4.88 | 37.55 ▼6.17 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.05 ▲0.03 | 40.77 ▲4.01 | 37.17 ▲3.96 |
Add New Post /wp-admin/post-new.php | 1,563 ▲32 | 23.32 ▲0.15 | 667.52 ▲13.57 | 53.06 ▲1.77 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.31 ▲0.07 | 98.01 ▼2.79 | 40.96 ▼1.89 |
Add place /wp-admin/post-new.php?post_type=places | 2,782 | 7.66 | 204.32 | 82.91 |
All places /wp-admin/edit.php?post_type=places | 1,091 | 2.11 | 34.83 | 29.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- 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
Even though everything seems fine, this is not 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/nearby-map/nearby-map.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
nearby-map/nearby-map.php Passed 13 tests
The entry point to "Nearby Map by Wabeo" version 0.9.3 is a PHP file that has certain tags in its header comment area
99 characters long description:
Allow to build a map to show the activities, places and services around a given geographical point.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,019 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 2,024 | 485 | 6,094 |
CSS | 4 | 59 | 15 | 956 |
PHP | 1 | 110 | 104 | 611 |
SVG | 1 | 0 | 0 | 236 |
PO File | 1 | 54 | 5 | 122 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 16 | |
▷ Named functions | 16 | 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
36 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/pins/foot.png | 2.72KB | 1.61KB | ▼ 40.78% |
i/pins/couronne.png | 2.16KB | 0.94KB | ▼ 56.70% |
leaflet/images/marker-icon@2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
i/pins/blue-medium.png | 4.14KB | 2.14KB | ▼ 48.22% |
i/pins/purple-medium.png | 4.15KB | 2.14KB | ▼ 48.33% |