84% special-addons-for-elementor

Code Review | Special Addons for Elementor

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

About plugin

  • Plugin page: special-addons-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 18, 2021
  • Latest release: Oct 18, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: cuongma111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /286 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
Installer ran successfully

Server metrics [RAM: ▲1.69MB] [CPU: ▲5.53ms] Passed 4 tests

Analyzing server-side resources used by Special Addons for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.19 ▲1.7352.82 ▲11.07
Dashboard /wp-admin5.03 ▲1.6858.30 ▼2.24
Posts /wp-admin/edit.php5.08 ▲1.7261.93 ▲13.57
Add New Post /wp-admin/post-new.php7.57 ▲1.6898.24 ▼0.27
Media Library /wp-admin/upload.php4.89 ▲1.6657.52 ▲19.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Special Addons for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲2414.72 ▲0.451.62 ▼0.3743.66 ▼5.00
Dashboard /wp-admin2,196 ▲195.56 ▼0.0284.95 ▼5.9540.48 ▲0.90
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0638.52 ▲1.4637.35 ▲2.96
Add New Post /wp-admin/post-new.php1,533 ▲523.19 ▼0.23670.79 ▲43.8956.90 ▼4.80
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.02100.03 ▼10.4345.22 ▲0.59

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

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 26× 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/special-addons-for-elementor/elementor/collection-carousel/collection-carousel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/blogs/blogs.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/before-after-carousel/before-after-carousel.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/step-list/step-list.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/banner-with-testimonials/banner-with-testimonials.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/hero-video-banner/hero-video-banner.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/special-addons-for-elementor/func/elementor.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/gallery-masonry/gallery-masonry.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/big-step/big-step.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/special-addons-for-elementor/elementor/step-grid/step-grid.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: elementor addons, widgets, elementor widgets, elementor, addons

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

Analyzing the main PHP file in "Special Addons for Elementor" version 1.0.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("special-addons-for-elementor.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected58,065 lines of code in 1,589 files:
LanguageFilesBlank linesComment linesLines of code
PHP1294,8251,99222,834
CSS322,5315039,746
Sass381,571199,079
PO File203,0373,4146,180
SVG1,359006,030
JavaScript111,2993644,196

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity20.71
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes86
▷ Abstract classes22.33%
▷ Concrete classes8497.67%
▷ Final classes00.00%
Methods557
▷ Static methods458.08%
▷ Public methods40572.71%
▷ Protected methods15227.29%
▷ Private methods00.00%
Functions52
▷ Named functions5198.08%
▷ Anonymous functions11.92%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
elementor/step-grid/images/wave-border-white.png4.40KB2.61KB▼ 40.74%
elementor/collection-carousel/images/arrow-right.png1.86KB0.51KB▼ 72.84%
elementor/info-special/images/background-border.png15.53KB8.03KB▼ 48.33%
libs/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
elementor/collection-carousel/images/arrow-left.png1.85KB0.51KB▼ 72.66%