93% cowidgets-elementor-addons

Code Review | Cowidgets - Elementor Addons

WordPress plugin Cowidgets - Elementor Addons scored 93% from 53 tests.

About plugin

  • Plugin page: cowidgets-element...
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.1
  • WordPress version: 5.8.1
  • First release: Oct 30, 2020
  • Latest release: May 24, 2021
  • Number of updates: 19
  • Update frequency: every 10.9 days
  • Top authors: codelessthemes (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

2,000+ active / 7,960 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼258.58ms] Passed 4 tests

An overview of server-side resources used by Cowidgets - Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1735.10 ▲16.16
Dashboard /wp-admin3.12 ▲0.0643.58 ▼1.09
Posts /wp-admin/edit.php3.20 ▲0.0939.95 ▲2.27
Add New Post /wp-admin/post-new.php5.48 ▲0.0593.67 ▼1,030.49
Media Library /wp-admin/upload.php3.06 ▲0.0532.78 ▼4.99

Server storage [IO: ▲2.59MB] [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: 261 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Cowidgets - Elementor Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲8615.87 ▲0.348.54 ▼0.4445.13 ▼0.92
Dashboard /wp-admin2,947 ▲945.95 ▲0.10138.52 ▲6.22102.19 ▲7.48
Posts /wp-admin/edit.php2,721 ▲152.70 ▲0.0067.06 ▼3.9491.15 ▼2.04
Add New Post /wp-admin/post-new.php1,492 ▼9618.64 ▼2.61367.38 ▲86.71103.29 ▼5.47
Media Library /wp-admin/upload.php1,789 ▲175.12 ▲0.12146.03 ▲0.18113.22 ▼4.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 54× 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 the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/portfolio/erzen.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/post-navigation/lark.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/podcast/modern.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/portfolio/ishmi.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/portfolio/filter.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/podcast/default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function COWIDGETS\\Themes\\add_action() in wp-content/plugins/cowidgets-elementor-addons/themes/default/class-ce-default-compat.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function COWIDGETS\\Themes\\get_option() in wp-content/plugins/cowidgets-elementor-addons/themes/default/class-ce-fallback-theme-support.php:128
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/portfolio/alder.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/post/adair.php:15

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Go to Appearance -> Codeless Header/Footer/Blocks to create a new template.), #2 (Various options to easiest work with large websites.), #3 (Header Widgets included), #4 (HQ widgets included with the plugin), #5 (Showcase of included widget (slider)), #6 (Showcase of included widget (portfolio grid)), #7 (Showcase of included widget (portfolio carousel)), #8 (Showcase of included widget (testimonial carousel)), #9 (Showcase of included widget (posts))
Please take inspiration from this readme.txt

cowidgets-elementor-addons/cowidgets.php 85% from 13 tests

The main file in "Cowidgets - Elementor Addons" v. 1.0.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cowidgets-elementor-addons.php" instead of "cowidgets.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected45,513 lines of code in 238 files:
LanguageFilesBlank linesComment linesLines of code
PHP893,4974,51218,777
Sass501,7291513,752
JavaScript842,3381,3028,483
JSON2003,574
CSS103277582
SVG35544345

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity21.10
▷ Minimum class complexity1.00
▷ Maximum class complexity253.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes00.00%
Methods540
▷ Static methods5710.56%
▷ Public methods35866.30%
▷ Protected methods17031.48%
▷ Private methods122.22%
Functions14
▷ Named functions1071.43%
▷ Anonymous functions428.57%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png2.61KB1.54KB▼ 40.90%
assets/images/formbg.png109.62KB51.17KB▼ 53.31%
assets/images/bg.png51.23KB34.46KB▼ 32.74%