Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.06ms] Passed 4 tests
This is a short check of server-side resources used by Interactive Polish Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.45 ▼1.49 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.32 ▼0.63 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.61 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 95.44 ▼7.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.25 ▲1.22 |
Interactive Polish Map /wp-admin/options-general.php?page=ipm_settings | 3.29 | 35.12 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_interactivepolishmapwidget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Interactive Polish Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲163 | 13.60 ▼0.75 | 8.10 ▲6.10 | 43.10 ▼11.24 |
Dashboard /wp-admin | 2,212 ▲27 | 5.81 ▲0.92 | 100.79 ▲0.23 | 40.85 ▼2.75 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.03 ▼0.00 | 38.76 ▼5.01 | 38.45 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,521 ▼17 | 23.17 ▲5.01 | 595.02 ▼18.93 | 53.27 ▼6.18 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.25 ▼0.03 | 95.21 ▼9.28 | 40.08 ▼6.08 |
Interactive Polish Map /wp-admin/options-general.php?page=ipm_settings | 972 | 1.83 | 25.48 | 31.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_interactivepolishmapwidget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-polish-map/interactive-polish-map.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/interactive-polish-map/snippets/widget_map.php:2
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: mapa polski, mapa wojewdztw, interaktywna mapa polski, map, polish...
interactive-polish-map/interactive-polish-map.php Passed 13 tests
Analyzing the main PHP file in "Interactive Polish Map" version 1.2.1
68 characters long description:
Interactive Polish Map display Polish map using shortcode or widget.
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
Everything looks great! No dangerous files found in this plugin440 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 41 | 305 |
CSS | 1 | 15 | 21 | 121 |
JavaScript | 1 | 7 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/400.png | 75.41KB | 44.38KB | ▼ 41.14% |
assets/images/200.png | 32.03KB | 20.40KB | ▼ 36.33% |
assets/images/500.png | 97.79KB | 57.81KB | ▼ 40.88% |
assets/images/300.png | 49.75KB | 30.65KB | ▼ 38.39% |