84% star-addons-for-elementor

Code Review | Star Addons for Elementor

WordPress plugin Star Addons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: star-addons-for-e...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Sep 27, 2023
  • Number of updates: 43
  • Update frequency: every 16.7 days
  • Top authors: mdhadid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /551 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.89ms] Passed 4 tests

Analyzing server-side resources used by Star Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1347.03 ▲1.84
Dashboard /wp-admin3.43 ▲0.0853.45 ▼14.59
Posts /wp-admin/edit.php3.54 ▲0.1852.30 ▲1.22
Add New Post /wp-admin/post-new.php6.15 ▲0.2696.39 ▼13.58
Media Library /wp-admin/upload.php3.35 ▲0.1236.06 ▼0.62
Portfolio /wp-admin/edit.php?post_type=star-add-portfolio3.3941.45
Add New /wp-admin/post-new.php?post_type=star-add-portfolio6.1385.55
Add New /wp-admin/post-new.php?post_type=star-add-services6.1387.56
Services /wp-admin/edit.php?post_type=star-add-services3.3940.88

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 122 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_star_addons_contact_us
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_star_addons_about_us

Browser metrics Passed 4 tests

A check of browser resources used by Star Addons for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,156 ▲39514.30 ▼0.0520.05 ▲18.2235.58 ▼7.95
Dashboard /wp-admin2,359 ▲1795.79 ▲0.2794.58 ▲3.4349.98 ▲8.36
Posts /wp-admin/edit.php2,239 ▲1362.19 ▲0.2441.59 ▼1.7241.49 ▲4.02
Add New Post /wp-admin/post-new.php1,619 ▲9323.35 ▼0.05611.19 ▼77.6349.00 ▼3.43
Media Library /wp-admin/upload.php1,539 ▲1394.46 ▲0.20107.32 ▲5.2449.38 ▲1.14
Portfolio /wp-admin/edit.php?post_type=star-add-portfolio1,2002.1038.0633.11
Add New /wp-admin/post-new.php?post_type=star-add-portfolio6,26222.83870.0429.11
Add New /wp-admin/post-new.php?post_type=star-add-services6,27322.53769.2730.99
Services /wp-admin/edit.php?post_type=star-add-services1,2062.1340.9037.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_star_addons_contact_us
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_star_addons_about_us
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
  • 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/star-addons-for-elementor/includes/class-star-addons-options.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/star-addons-for-elementor/widgets/star-addons-call-to-action.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/star-addons-for-elementor/includes/library/class-star-addons-custom-tag.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/star-addons-for-elementor/widgets/star-addons-service.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/star-addons-for-elementor/widgets/star-addons-blog.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/star-addons-for-elementor/widgets/star-addons-demos.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/star-addons-for-elementor/widgets/star-addons-product.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/star-addons-for-elementor/widgets/star-addons-product-category.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/star-addons-for-elementor/includes/class-star-addons-custom.php:341
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/star-addons-for-elementor/widgets/footer/star-addons-footer-contact.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: website, template, page, kit, addons...

star-addons-for-elementor/star-addons.php 92% from 13 tests

"Star Addons for Elementor" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("star-addons-for-elementor.php" instead of "star-addons.php")

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
Good job! No executable or dangerous file extensions detected34,580 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
CSS172,84224417,913
PHP571,6551,27811,685
SVG2002,773
PO File16911,0741,522
JavaScript127783687

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.78
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes12.70%
Methods210
▷ Static methods41.90%
▷ Public methods15171.90%
▷ Protected methods4822.86%
▷ Private methods115.24%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ 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
13 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/shape_05.png0.50KB0.46KB▼ 6.90%
public/img/shape_03.png0.49KB0.46KB▼ 6.37%
public/img/box-shape-2.png13.45KB5.70KB▼ 57.61%
public/img/shape_07.png6.07KB3.51KB▼ 42.14%
admin/img/shape.png4.59KB2.86KB▼ 37.83%