83% cowidgets-elementor-addons

Code Review | Cowidgets - Elementor Addons

WordPress plugin Cowidgets - Elementor Addons scored83%from 54 tests.

About plugin

  • Plugin page: cowidgets-element...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Feb 19, 2023
  • Number of updates: 27
  • Update frequency: every 38.9 days
  • Top authors: codelessthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /21,436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.97ms] Passed 4 tests

This is a short check of server-side resources used by Cowidgets - Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.73 ▼2.91
Dashboard /wp-admin3.77 ▲0.4755.03 ▲7.73
Posts /wp-admin/edit.php3.49 ▲0.1345.73 ▲1.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.47 ▼14.90
Media Library /wp-admin/upload.php3.30 ▲0.0634.48 ▲0.22

Server storage [IO: ▲2.59MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Cowidgets - Elementor Addons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11714.37 ▲0.021.69 ▲0.0641.28 ▲2.88
Dashboard /wp-admin2,281 ▲1005.57 ▼0.1181.09 ▼16.9640.08 ▼4.82
Posts /wp-admin/edit.php2,110 ▲132.02 ▲0.0334.10 ▼3.9935.04 ▲2.53
Add New Post /wp-admin/post-new.php1,536 ▲823.01 ▼0.17607.15 ▼64.3754.08 ▲2.20
Media Library /wp-admin/upload.php1,413 ▲164.23 ▲0.0897.30 ▲0.5544.19 ▲0.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 54× PHP files trigger errors when accessed directly with GET requests (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/jasper.php:16
    • > 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/amber.php:16
    • > 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/podcast/box3.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/testimonial/alder.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cowidgets-elementor-addons/cowidgets.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/portfolio/filter.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/testimonial/tista.php:1
    • > 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 esc_html_e() in wp-content/plugins/cowidgets-elementor-addons/inc/widgets-manager/widgets/content/partials/podcast/featured.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • 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))
You can take inspiration from this readme.txt

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

This is the main PHP file of "Cowidgets - Elementor Addons" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cowidgets-elementor-addons.php" instead of "cowidgets.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin45,559 lines of code in 238 files:
LanguageFilesBlank linesComment linesLines of code
PHP893,4944,51418,821
Sass501,7291513,752
JavaScript842,3361,3028,485
JSON2003,574
CSS103277582
SVG35544345

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity21.12
▷ 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 methods5810.74%
▷ Public methods35866.30%
▷ Protected methods17031.48%
▷ Private methods122.22%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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/bg.png51.23KB34.46KB▼ 32.74%
assets/images/icon.png2.61KB1.54KB▼ 40.90%
assets/images/formbg.png109.62KB51.17KB▼ 53.31%