84% nearby-map

Code Review | Nearby Map by Wabeo

WordPress plugin Nearby Map by Wabeo scored84%from 54 tests.

About plugin

  • Plugin page: nearby-map
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: May 16, 2013
  • Number of updates: 21
  • Update frequency: every 4.3 days
  • Top authors: willybahuaud (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,446 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2243.49 ▼2.15
Dashboard /wp-admin3.49 ▲0.1955.29 ▲7.85
Posts /wp-admin/edit.php3.54 ▲0.1951.56 ▲5.74
Add New Post /wp-admin/post-new.php6.07 ▲0.1986.79 ▼14.37
Media Library /wp-admin/upload.php3.42 ▲0.1938.86 ▲2.64
Add place /wp-admin/post-new.php?post_type=places3.5357.00
All places /wp-admin/edit.php?post_type=places3.4641.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8913.20 ▼1.192.21 ▲0.4445.72 ▲1.53
Dashboard /wp-admin2,251 ▲445.87 ▲0.92108.74 ▼4.8837.55 ▼6.17
Posts /wp-admin/edit.php2,127 ▲272.05 ▲0.0340.77 ▲4.0137.17 ▲3.96
Add New Post /wp-admin/post-new.php1,563 ▲3223.32 ▲0.15667.52 ▲13.5753.06 ▲1.77
Media Library /wp-admin/upload.php1,421 ▲214.31 ▲0.0798.01 ▼2.7940.96 ▼1.89
Add place /wp-admin/post-new.php?post_type=places2,7827.66204.3282.91
All places /wp-admin/edit.php?post_type=places1,0912.1134.8329.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript42,0244856,094
CSS45915956
PHP1110104611
SVG100236
PO File1545122

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 code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
i/pins/foot.png2.72KB1.61KB▼ 40.78%
i/pins/couronne.png2.16KB0.94KB▼ 56.70%
leaflet/images/marker-icon@2x.png3.94KB2.53KB▼ 35.71%
i/pins/blue-medium.png4.14KB2.14KB▼ 48.22%
i/pins/purple-medium.png4.15KB2.14KB▼ 48.33%