78% fancy-elements-for-avada

Code Review | Fancy Elements for Avada

WordPress plugin Fancy Elements for Avada scored 78% from 54 tests.

About plugin

  • Plugin page: fancy-elements-fo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Feb 24, 2021
  • Latest release: Apr 29, 2021
  • Number of updates: 7
  • Update frequency: every 9.3 days
  • Top authors: sohaibmuzammal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.60ms] Passed 4 tests

This is a short check of server-side resources used by Fancy Elements for Avada
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.89 ▼8.04
Dashboard /wp-admin3.31 ▲0.0045.39 ▼3.29
Posts /wp-admin/edit.php3.36 ▲0.0047.39 ▼2.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.65 ▼0.64
Media Library /wp-admin/upload.php3.23 ▲0.0033.87 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fancy Elements for Avada
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼0.894.51 ▲2.4642.27 ▼5.00
Dashboard /wp-admin2,206 ▲185.85 ▲0.99103.48 ▼3.2841.41 ▼0.74
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0741.26 ▼0.2935.77 ▼0.73
Add New Post /wp-admin/post-new.php1,529 ▲1518.36 ▲0.79637.06 ▼32.8647.23 ▼10.31
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0799.76 ▼6.3543.72 ▲0.79

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/fancy-elements-for-avada/inc/shortcodes/previews/fea-fancy-timeline-v1-preview.php
    • > /wp-content/plugins/fancy-elements-for-avada/inc/shortcodes/previews/fea-fancy-tabs-preview.php
    • > /wp-content/plugins/fancy-elements-for-avada/inc/shortcodes/previews/fea-fancy-testimonial-preview.php
    • > /wp-content/plugins/fancy-elements-for-avada/inc/shortcodes/previews/fea-fancy-timeline-v2-preview.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-elements-for-avada/elements/fea-timeline-maping.php:164
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-elements-for-avada/elements/fea-tabs-maping.php:195
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-elements-for-avada/inc/functions.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-elements-for-avada/elements/fea-timeline2-maping.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-elements-for-avada/elements/fea-testimonial-maping.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fancy-elements-for-avada/fancy-elements-avada.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

fancy-elements-for-avada/fancy-elements-avada.php 92% from 13 tests

This is the main PHP file of "Fancy Elements for Avada" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fancy-elements-for-avada.php" instead of "fancy-elements-avada.php")

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 plugin2,765 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP142844691,376
CSS310630896
JSON500390
XML213862
JavaScript31641

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity7.75
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin