Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.20ms] Passed 4 tests
An overview of server-side resources used by Basic Interactive World Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.50 ▲0.88 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.32 ▼13.89 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.75 ▼1.23 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 80.30 ▼20.84 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.97 ▼0.85 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Basic Interactive World Map
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.33 ▼1.05 | 1.74 ▼0.04 | 44.10 ▲0.63 |
Dashboard /wp-admin | 2,228 ▲40 | 5.88 ▲1.02 | 99.48 ▼12.66 | 73.11 ▲27.63 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.01 ▼0.02 | 37.45 ▼0.91 | 35.18 ▲4.25 |
Add New Post /wp-admin/post-new.php | 1,540 ▼6 | 23.13 ▲4.87 | 739.19 ▲127.46 | 54.12 ▼3.30 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.22 ▼0.10 | 102.60 ▲3.62 | 76.86 ▲31.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/basic-interactive-world-map/includes/map.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/basic-interactive-world-map/includes/admin.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_hex_color() in wp-content/plugins/basic-interactive-world-map/includes/js-config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function WORLDMap\\plugin_dir_path() in wp-content/plugins/basic-interactive-world-map/world-map.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
basic-interactive-world-map/world-map.php 85% from 13 tests
"Basic Interactive World Map" version 2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("basic-interactive-world-map.php" instead of "world-map.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,883 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 25 | 11 | 839 |
CSS | 8 | 34 | 3 | 480 |
PHP | 5 | 70 | 14 | 439 |
SVG | 2 | 0 | 0 | 125 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 42.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/map-icon.png | 1.65KB | 1.01KB | ▼ 38.59% |
public/images/map-icons.png | 3.93KB | 2.40KB | ▼ 38.85% |
public/images/icons.png | 15.88KB | 5.44KB | ▼ 65.72% |