Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.40ms] Passed 4 tests
A check of server-side resources used by World Map HD - Interactive Maps of the World
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.47 ▼5.32 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.60 ▼7.20 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.64 ▲2.96 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.07 ▼4.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.98 ▲4.14 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
WorldMapHDInputField4 |
widget_worldmaphd |
theysaidso_admin_options |
WorldMapHDInputField1 |
WorldMapHDInputField3 |
db_upgraded |
WorldMapHDInputField2 |
... |
Browser metrics Passed 4 tests
World Map HD - Interactive Maps of the World: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.36 ▼1.22 | 1.96 ▼0.07 | 43.47 ▼6.41 |
Dashboard /wp-admin | 2,218 ▲30 | 5.86 ▼0.17 | 103.70 ▼12.10 | 84.12 ▲39.16 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.98 ▼0.07 | 37.08 ▼0.36 | 33.45 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.08 ▼0.14 | 753.86 ▲104.19 | 49.75 ▼9.41 |
Media Library /wp-admin/upload.php | 1,406 ▲24 | 4.17 ▼0.05 | 96.21 ▼2.26 | 84.72 ▲41.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 11 options in the database
- WorldMapHDInputField1
- WorldMapHDInputField3
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_worldmaphd
- widget_recent-posts
- can_compress_scripts
- WorldMapHDInputField2
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/world-map-hd-interactive-maps-of-the-world/Settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/world-map-hd-interactive-maps-of-the-world/CustomCode.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: world, interactive map, map, maps, world map
world-map-hd-interactive-maps-of-the-world/WorldMapHD.php 92% from 13 tests
The primary PHP file in "World Map HD - Interactive Maps of the World" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("world-map-hd-interactive-maps-of-the-world.php" instead of "WorldMapHD.php")
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
Everything looks great! No dangerous files found in this plugin3,408 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 47 | 2 | 3,201 |
PHP | 3 | 61 | 42 | 207 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.49MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
thumb.png | 8.27KB | 0.54KB | ▼ 93.48% |
screenshot-1.png | 199.28KB | 67.24KB | ▼ 66.26% |
phone.png | 6.80KB | 0.45KB | ▼ 93.35% |
screenicon.png | 18.37KB | 4.46KB | ▼ 75.71% |
screenshot-2.png | 87.79KB | 29.90KB | ▼ 65.94% |