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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.55 | 4.75 ▼42.54 |
Dashboard /wp-admin | 2.20 ▼1.36 | 7.30 ▼48.86 |
Posts /wp-admin/edit.php | 2.20 ▼1.48 | 8.02 ▼43.13 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.95 | 5.50 ▼90.60 |
Media Library /wp-admin/upload.php | 2.20 ▼1.29 | 8.20 ▼31.79 |
Settings /wp-admin/admin.php?page=nwm_settings | 2.20 | 5.29 |
Manage Maps /wp-admin/admin.php?page=nwm_manage_maps | 2.20 | 6.96 |
Route Editor /wp-admin/admin.php?page=nwm_map_editor | 2.20 | 6.61 |
FAQ /wp-admin/admin.php?page=nwm_faq | 2.20 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.41 ▲0.10 | 1.79 ▼0.24 | 37.71 ▼19.81 |
Dashboard /wp-admin | 2,242 ▲65 | 5.67 ▼0.08 | 97.25 ▼6.52 | 43.57 ▼2.44 |
Posts /wp-admin/edit.php | 2,144 ▲47 | 2.06 ▲0.05 | 41.24 ▲3.88 | 36.72 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,577 ▲31 | 23.41 ▲0.16 | 670.00 ▼17.39 | 51.36 ▼1.76 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.22 ▲0.00 | 99.91 ▲1.36 | 44.96 ▲1.05 |
Settings /wp-admin/admin.php?page=nwm_settings | 1,689 | 4.83 | 112.26 | 45.96 |
Manage Maps /wp-admin/admin.php?page=nwm_manage_maps | 1,251 | 4.22 | 86.07 | 27.87 |
Route Editor /wp-admin/admin.php?page=nwm_map_editor | 2,027 | 8.60 | 149.40 | 154.84 |
FAQ /wp-admin/admin.php?page=nwm_faq | 1,212 | 4.11 | 54.04 | 30.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 579 | 713 | 3,705 |
PHP | 11 | 629 | 249 | 2,544 |
PO File | 4 | 557 | 939 | 1,525 |
CSS | 3 | 85 | 22 | 742 |
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 code | 0.35 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 9.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/flags/mr.png | 0.56KB | 0.71KB | 0.00% |
img/flags/it.png | 0.41KB | 0.56KB | 0.00% |
img/flags/re.png | 0.53KB | 0.63KB | 0.00% |
img/flags/so.png | 0.51KB | 0.71KB | 0.00% |
img/flags/kn.png | 0.59KB | 0.68KB | 0.00% |