84% magical-products-display

Code Review | Magical Products Display – Elementor Products Widgets For WooCommerce

WordPress plugin Magical Products Display – Elementor Products Widgets For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: magical-products-...
  • Plugin version: 1.1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: May 28, 2021
  • Latest release: Dec 2, 2023
  • Number of updates: 44
  • Update frequency: every 20.9 days
  • Top authors: nalam (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /37,996 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.35ms] Passed 4 tests

This is a short check of server-side resources used by Magical Products Display – Elementor Products Widgets For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.87 ▼6.49
Dashboard /wp-admin3.36 ▲0.0547.49 ▼1.42
Posts /wp-admin/edit.php3.41 ▲0.0546.37 ▼5.45
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.07 ▼4.03
Media Library /wp-admin/upload.php3.28 ▲0.0534.31 ▲0.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Magical Products Display – Elementor Products Widgets For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4614.22 ▼0.181.78 ▲0.1442.41 ▼3.25
Dashboard /wp-admin2,213 ▲435.64 ▼0.0490.38 ▼21.8841.17 ▼5.73
Posts /wp-admin/edit.php2,118 ▲211.99 ▲0.0241.02 ▲1.0137.19 ▲2.74
Add New Post /wp-admin/post-new.php1,539 ▲1323.13 ▲0.01596.10 ▼37.1148.89 ▼7.37
Media Library /wp-admin/upload.php1,421 ▲244.17 ▼0.1197.34 ▼2.5842.84 ▲0.35

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/products-awesome-list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magical-products-display/includes/admin-rev-info.php:81
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/products-carousel.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/porducts-cat.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/accordion-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/products-tab.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/pricing-table.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/products-list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-products-display/includes/widgets/products-grid.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magical-products-display/includes/assets-managment.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #3, #4 in magical-products-display/assets to your readme.txt
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

magical-products-display/magical-products-display.php Passed 13 tests

"Magical Products Display – Elementor Products Widgets For WooCommerce" version 1.1.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
Customizable Elementor Widgets for Beautiful WooCommerce Product Displays.

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 detected22,847 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,7691,53817,906
CSS13651844,675
JavaScript107037266

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity32.71
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods146
▷ Static methods74.79%
▷ Public methods11075.34%
▷ Protected methods3624.66%
▷ Private methods00.00%
Functions24
▷ Named functions2291.67%
▷ Anonymous functions28.33%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin