Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.84ms] Passed 4 tests
Server-side resources used by Interactive US Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.48 ▲1.51 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.93 ▼3.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.44 ▲8.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.16 ▼23.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.27 ▲1.59 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Interactive US Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.16 ▼1.15 | 1.74 ▼0.09 | 43.09 ▼8.96 |
Dashboard /wp-admin | 2,223 ▲32 | 4.93 ▼0.88 | 94.68 ▼26.77 | 74.71 ▲31.90 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.01 ▲0.01 | 36.06 ▼6.64 | 32.07 ▼4.51 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.16 ▲4.91 | 708.64 ▲83.49 | 58.42 ▲2.12 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.19 ▼0.05 | 100.49 ▲6.05 | 81.07 ▲41.73 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/interactive-us-map/includes/map.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/interactive-us-map/usr-map.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/interactive-us-map/includes/js-config-footer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/interactive-us-map/includes/js-config-footer.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-us-map/includes/admin.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
interactive-us-map/usr-map.php 92% from 13 tests
The primary PHP file in "Interactive US Map" version 2.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("interactive-us-map.php" instead of "usr-map.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,017 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 22 | 11 | 832 |
PHP | 6 | 76 | 11 | 597 |
CSS | 8 | 34 | 3 | 463 |
SVG | 2 | 0 | 0 | 125 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.43 |
▷ 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-icons.png | 3.93KB | 2.40KB | ▼ 38.85% |
public/images/icons.png | 15.88KB | 5.44KB | ▼ 65.72% |
public/images/map-icon.png | 1.60KB | 0.78KB | ▼ 51.37% |