72% element-path-for-elementor

Code Review | Element Path for Elementor

WordPress plugin Element Path for Elementor scored72%from 54 tests.

About plugin

  • Plugin page: element-path-for-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9.3
  • WordPress version: 6.3.1
  • First release: May 19, 2022
  • Latest release: Dec 4, 2022
  • Number of updates: 4
  • Update frequency: every 49.8 days
  • Top authors: templatepath (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /221 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.60MB] [CPU: ▼2.68ms] Passed 4 tests

Server-side resources used by Element Path for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6447.26 ▼0.71
Dashboard /wp-admin3.93 ▲0.6352.60 ▼1.53
Posts /wp-admin/edit.php3.98 ▲0.6355.92 ▲4.47
Add New Post /wp-admin/post-new.php6.47 ▲0.5987.21 ▼12.93
Media Library /wp-admin/upload.php3.79 ▲0.5640.66 ▲4.66
Element Path /wp-admin/admin.php?page=elmpath-settings3.7938.02
Team Category /wp-admin/edit-tags.php?taxonomy=team_cat&post_type=team3.7938.91
Add Team /wp-admin/post-new.php?post_type=team3.9552.45
Teams /wp-admin/edit.php?post_type=team3.9045.54
Library /wp-admin/admin.php?page=elmpath-library3.7635.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 191 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
elmpath_api_response
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Element Path for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11813.73 ▼0.891.84 ▼0.0939.42 ▼2.78
Dashboard /wp-admin2,264 ▲765.09 ▲0.19115.03 ▼1.3642.63 ▼3.19
Posts /wp-admin/edit.php2,159 ▲702.35 ▲0.3838.45 ▲4.0232.26 ▼1.59
Add New Post /wp-admin/post-new.php6,286 ▲4,77223.35 ▲5.65929.75 ▲238.6732.50 ▼25.35
Media Library /wp-admin/upload.php1,449 ▲614.33 ▲0.12104.29 ▲3.6146.09 ▼1.96
Element Path /wp-admin/admin.php?page=elmpath-settings1,7502.1527.4653.57
Team Category /wp-admin/edit-tags.php?taxonomy=team_cat&post_type=team1,3332.1528.9430.73
Add Team /wp-admin/post-new.php?post_type=team2,4477.93180.3771.16
Teams /wp-admin/edit.php?post_type=team1,1292.4232.6228.51
Library /wp-admin/admin.php?page=elmpath-library8562.0525.0924.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • elmpath_api_response
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Warning in wp-content/plugins/element-path-for-elementor/includes/classes/class-meta-boxes.php+104
    array_keys() expects parameter 1 to be array, string given
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Warning in wp-content/plugins/element-path-for-elementor/includes/classes/class-meta-boxes.php+104
    array_map(): Expected parameter 2 to be an array, string given
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Warning in wp-content/plugins/element-path-for-elementor/includes/classes/class-meta-boxes.php+110
    implode(): Invalid arguments passed

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/element-path-for-elementor/widgets/team/views/template-7.php
  • 70× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/posts-grid/views/template-1.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/pricing/views/template-1.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/mailchimp/views/template-1.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/tribe-events-grid/views/template-2.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/posts-grid/views/template-2.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/charts/views/template-2.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/team/views/template-2.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/social-profile/views/template-2.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/tribe-events-grid/views/template-1.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elmpath() in wp-content/plugins/element-path-for-elementor/widgets/slider/views/template-3.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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:
  • Screenshots: Add an image for screenshot #1 (Widgets List)
You can look at the official readme.txt

element-path-for-elementor/element-path.php 85% from 13 tests

"Element Path for Elementor" version 1.0.0'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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("element-path-for-elementor.php" instead of "element-path.php")

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
No dangerous file extensions were detected37,621 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
CSS423,89652120,409
PHP1072,7961,65615,825
JavaScript284321981,188
SVG100199

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.40
▷ Minimum class complexity1.00
▷ Maximum class complexity312.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes42
▷ Abstract classes12.38%
▷ Concrete classes4197.62%
▷ Final classes00.00%
Methods238
▷ Static methods00.00%
▷ Public methods18678.15%
▷ Protected methods3815.97%
▷ Private methods145.88%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png3.32KB1.76KB▼ 46.89%
assets/images/feature.png29.32KB10.78KB▼ 63.23%
assets/images/shape-1.png3.52KB1.59KB▼ 54.81%