10% nomad-world-map

Code Review | Nomad World Map

WordPress plugin Nomad World Map scored10%from 54 tests.

About plugin

  • Plugin page: nomad-world-map
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Aug 30, 2016
  • Number of updates: 53
  • Update frequency: every 20.9 days
  • Top authors: tijmensmit (96.23%)worldnomadmap (5.66%)

Code review

54 tests

User reviews

50 reviews

Install metrics

1,000+ active /38,858 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/nomad-world-map/includes/nwm-widget-class.php+327
    Function create_function() is deprecated

Server metrics [RAM: ▼2.08MB] [CPU: ▼56.28ms] Passed 4 tests

Analyzing server-side resources used by Nomad World Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.554.75 ▼42.54
Dashboard /wp-admin2.20 ▼1.367.30 ▼48.86
Posts /wp-admin/edit.php2.20 ▼1.488.02 ▼43.13
Add New Post /wp-admin/post-new.php2.20 ▼3.955.50 ▼90.60
Media Library /wp-admin/upload.php2.20 ▼1.298.20 ▼31.79
Settings /wp-admin/admin.php?page=nwm_settings2.205.29
Manage Maps /wp-admin/admin.php?page=nwm_manage_maps2.206.96
Route Editor /wp-admin/admin.php?page=nwm_map_editor2.206.61
FAQ /wp-admin/admin.php?page=nwm_faq2.207.12

Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 286 new files
Database: 2 new tables, 10 new options
New tables
wp_nwm_routes
wp_nwm_custom
New WordPress options
db_upgraded
nwm_map_ids
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
nwm_version
nwm_settings
theysaidso_admin_options
widget_nwm_widget

Browser metrics Passed 4 tests

Checking browser requirements for Nomad World Map
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.41 ▲0.101.79 ▼0.2437.71 ▼19.81
Dashboard /wp-admin2,242 ▲655.67 ▼0.0897.25 ▼6.5243.57 ▼2.44
Posts /wp-admin/edit.php2,144 ▲472.06 ▲0.0541.24 ▲3.8836.72 ▲2.28
Add New Post /wp-admin/post-new.php1,577 ▲3123.41 ▲0.16670.00 ▼17.3951.36 ▼1.76
Media Library /wp-admin/upload.php1,447 ▲474.22 ▲0.0099.91 ▲1.3644.96 ▲1.05
Settings /wp-admin/admin.php?page=nwm_settings1,6894.83112.2645.96
Manage Maps /wp-admin/admin.php?page=nwm_manage_maps1,2514.2286.0727.87
Route Editor /wp-admin/admin.php?page=nwm_map_editor2,0278.60149.40154.84
FAQ /wp-admin/admin.php?page=nwm_faq1,2124.1154.0430.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/nomad-world-map/includes/nwm-widget-class.php+327
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_nwm_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=nwm_faq
    • > Deprecated in wp-content/plugins/nomad-world-map/includes/nwm-widget-class.php+327
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nomad-world-map/includes/nwm-widget-class.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=nwm_faq
    • > Console-api (warning) in unknown
    http://maps.google.com/maps/api/js?ver=6.3.1 210: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"

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
8 plugin tags: travel directory, travel, geocoding, travel blog, route...

nomad-world-map/nomad-world-map.php Passed 13 tests

"Nomad World Map" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Create your own custom travel map. Link locations on the map to blog posts and share your travel plans.

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
There were no executable files found in this plugin8,516 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65797133,705
PHP116292492,544
PO File45579391,525
CSS38522742

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity9.40
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
252 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/flags/mr.png0.56KB0.71KB0.00%
img/flags/it.png0.41KB0.56KB0.00%
img/flags/re.png0.53KB0.63KB0.00%
img/flags/so.png0.51KB0.71KB0.00%
img/flags/kn.png0.59KB0.68KB0.00%