Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.15ms] Passed 4 tests
Server-side resources used by Interactive Regional Map of Europe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.47 ▼6.32 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.96 ▼1.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.75 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.65 ▼11.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.27 ▲3.18 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Interactive Regional Map of Europe
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.29 ▼1.10 | 1.72 ▲0.05 | 42.31 ▲0.26 |
Dashboard /wp-admin | 2,226 ▲38 | 5.86 ▼0.03 | 107.45 ▼5.90 | 76.26 ▲29.47 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.00 ▼0.01 | 39.16 ▼1.19 | 33.26 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 22.98 ▲4.72 | 790.78 ▲178.70 | 55.65 ▲4.98 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.26 ▲0.10 | 117.32 ▲18.13 | 54.64 ▲11.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/interactive-map-of-europe/design/map.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-map-of-europe/config.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/interactive-map-of-europe/eur-map.php:80
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-map-of-europe/design/admin.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
interactive-map-of-europe/eur-map.php 92% from 13 tests
"Interactive Regional Map of Europe" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("interactive-map-of-europe.php" instead of "eur-map.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,647 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 50 | 7 | 13 | 761 |
CSS | 8 | 20 | 3 | 401 |
PHP | 4 | 24 | 7 | 352 |
SVG | 2 | 0 | 0 | 125 |
HTML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ 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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons.png | 15.88KB | 5.44KB | ▼ 65.72% |
images/map-icon.png | 1.51KB | 0.81KB | ▼ 46.60% |
images/map-icons.png | 3.93KB | 2.40KB | ▼ 38.85% |
images/europe-premium.png | 17.25KB | 16.04KB | ▼ 7.04% |