83% team-member-addon-elementor

Code Review | Team Member Addon for Elementor

WordPress plugin Team Member Addon for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: team-member-addon...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 11, 2022
  • Latest release: Aug 25, 2022
  • Number of updates: 12
  • Update frequency: every 6.3 days
  • Top authors: farhad123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.75ms] Passed 4 tests

A check of server-side resources used by Team Member Addon for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.76 ▼2.64
Dashboard /wp-admin3.33 ▲0.0247.87 ▼3.68
Posts /wp-admin/edit.php3.38 ▲0.0251.64 ▼3.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.79 ▼21.54
Media Library /wp-admin/upload.php3.25 ▲0.0234.91 ▼1.01

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Team Member Addon for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.42 ▲0.141.74 ▼0.4141.96 ▼6.65
Dashboard /wp-admin2,212 ▲325.49 ▼0.1985.27 ▼17.5141.02 ▼5.21
Posts /wp-admin/edit.php2,117 ▲171.99 ▲0.0440.94 ▲2.3839.03 ▲3.02
Add New Post /wp-admin/post-new.php1,540 ▲1422.91 ▼0.13665.10 ▼13.7256.39 ▲2.87
Media Library /wp-admin/upload.php1,414 ▲114.23 ▼0.00101.55 ▼2.8241.72 ▼5.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout6.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout5.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout4.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout8.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout3.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/team-member-addon-elementor/widgets/parts/team_layout7.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/team-member-addon-elementor/widgets/team_members.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI ("#")
You can look at the official readme.txt

team-member-addon-elementor/team-ember-ddon-for-elementor.php 85% from 13 tests

Analyzing the main PHP file in "Team Member Addon for Elementor" version 1.0.1
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("team-member-addon-elementor.php" instead of "team-ember-ddon-for-elementor.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,197 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS1149692
PHP10168173505

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.50
▷ Minimum class complexity8.00
▷ Maximum class complexity9.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin