84% mihdan-elementor-yandex-maps

Code Review | Mihdan: Elementor Yandex Maps

WordPress plugin Mihdan: Elementor Yandex Maps scored84%from 54 tests.

About plugin

  • Plugin page: mihdan-elementor-...
  • Plugin version: 1.6.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2018
  • Latest release: May 4, 2023
  • Number of updates: 53
  • Update frequency: every 33.8 days
  • Top authors: mihdan (100%)

Code review

54 tests

User reviews

46 reviews

Install metrics

6,000+ active /29,928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼7.94ms] Passed 4 tests

An overview of server-side resources used by Mihdan: Elementor Yandex Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.01 ▲1.08
Dashboard /wp-admin3.52 ▲0.1850.06 ▼12.18
Posts /wp-admin/edit.php3.57 ▲0.2246.63 ▼2.72
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.21 ▼15.90
Media Library /wp-admin/upload.php3.38 ▲0.1536.66 ▼0.97

Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Mihdan: Elementor Yandex Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5113.23 ▼1.001.77 ▼0.1041.06 ▼2.62
Dashboard /wp-admin2,228 ▲394.85 ▼1.01107.50 ▼4.8542.70 ▲0.28
Posts /wp-admin/edit.php2,110 ▲182.06 ▲0.0741.09 ▼2.0835.82 ▲0.65
Add New Post /wp-admin/post-new.php1,389 ▼13016.74 ▼6.60571.80 ▼112.0055.10 ▲4.36
Media Library /wp-admin/upload.php1,407 ▲164.22 ▲0.0395.95 ▼4.4743.51 ▼1.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\DynamicTags\\Tags\\Base\\Tag' not found in wp-content/plugins/mihdan-elementor-yandex-maps/includes/class-acf-tag.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: mihdan, elementor, yandex, maps, api

mihdan-elementor-yandex-maps/mihdan-elementor-yandex-maps.php 92% from 13 tests

"Mihdan: Elementor Yandex Maps" version 1.6.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 296 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,822 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP204351,0672,341
JavaScript26345272
Markdown129087
CSS211065
JSON10055
SVG2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.45
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods98
▷ Static methods2121.43%
▷ Public methods8889.80%
▷ Protected methods33.06%
▷ Private methods77.14%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin