84% interactive-polish-map

Code Review | Interactive Polish Map

WordPress plugin Interactive Polish Map scored 84% from 54 tests.

About plugin

  • Plugin page: interactive-polis...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2011
  • Latest release: Jan 18, 2023
  • Number of updates: 39
  • Update frequency: every 115.9 days
  • Top authors: iworks (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active / 12,714 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.45 ▼1.49
Dashboard /wp-admin3.39 ▲0.0947.32 ▼0.63
Posts /wp-admin/edit.php3.44 ▲0.0948.61 ▲0.92
Add New Post /wp-admin/post-new.php5.97 ▲0.0995.44 ▼7.03
Media Library /wp-admin/upload.php3.32 ▲0.0936.25 ▲1.22
Interactive Polish Map /wp-admin/options-general.php?page=ipm_settings3.2935.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲16313.60 ▼0.758.10 ▲6.1043.10 ▼11.24
Dashboard /wp-admin2,212 ▲275.81 ▲0.92100.79 ▲0.2340.85 ▼2.75
Posts /wp-admin/edit.php2,098 ▲92.03 ▼0.0038.76 ▼5.0138.45 ▲4.07
Add New Post /wp-admin/post-new.php1,521 ▼1723.17 ▲5.01595.02 ▼18.9353.27 ▼6.18
Media Library /wp-admin/upload.php1,397 ▲64.25 ▼0.0395.21 ▼9.2840.08 ▼6.08
Interactive Polish Map /wp-admin/options-general.php?page=ipm_settings9721.8325.4831.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP32741305
CSS11521121
JavaScript17014

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 code0.28
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/400.png75.41KB44.38KB▼ 41.14%
assets/images/200.png32.03KB20.40KB▼ 36.33%
assets/images/500.png97.79KB57.81KB▼ 40.88%
assets/images/300.png49.75KB30.65KB▼ 38.39%