84% fancy-product-for-elementor

Code Review | Fancy Product For Elementor

WordPress plugin Fancy Product For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: fancy-product-for...
  • Plugin version: 3.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 6, 2020
  • Latest release: Dec 15, 2020
  • Number of updates: 26
  • Update frequency: every 13.4 days
  • Top authors: hosseinhashemi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,754 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.02MB] [CPU: ▼0.52ms] Passed 4 tests

A check of server-side resources used by Fancy Product For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.78 ▼3.21
Dashboard /wp-admin3.32 ▲0.0253.37 ▲2.55
Posts /wp-admin/edit.php3.37 ▲0.0253.13 ▲1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.02101.17 ▲1.01
Media Library /wp-admin/upload.php3.25 ▲0.0238.54 ▼1.60

Server storage [IO: ▲0.16MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Fancy Product For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.71 ▲0.361.62 ▼0.5245.35 ▲4.24
Dashboard /wp-admin2,209 ▲295.68 ▲0.0293.39 ▲3.8238.68 ▼5.00
Posts /wp-admin/edit.php2,114 ▲142.15 ▲0.1442.41 ▲0.6936.86 ▼4.13
Add New Post /wp-admin/post-new.php1,539 ▲1323.38 ▲0.30690.19 ▲1.6863.43 ▲7.05
Media Library /wp-admin/upload.php1,405 ▲114.27 ▼0.0199.33 ▼3.6441.74 ▼1.74

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_image() on null in wp-content/plugins/fancy-product-for-elementor/widgets/svg-styles.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fancy-product-for-elementor/widgets/svg-styles.php on line 1
    • > PHP Notice
      Undefined variable: product in wp-content/plugins/fancy-product-for-elementor/widgets/svg-styles.php on line 4
    • > PHP Notice
      Undefined variable: svg_tag_hover in wp-content/plugins/fancy-product-for-elementor/widgets/svg-styles.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #7 (Style 5 demo.), #8 (Style 1 demo(2).), #9 (Style 3 demo.), #10 (Style 2 demo(2).)
The official readme.txt might help

fancy-product-for-elementor/fancy-product-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "Fancy Product For Elementor" version 3.0.1
124 characters long description:
This plugin adds an amazing and customizable Woocommerce box widget(with many options) to the Elementor page builder plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,682 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP83121941,416
CSS2355232
JavaScript3112333
Markdown1101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity4.90
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces3
Interfaces0
Traits2
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1676.19%
▷ Protected methods29.52%
▷ Private methods314.29%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants2
▷ Global constants2100.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