84% astro-elementor-widgets-lite

Code Review | Astro Elementor Widgets Lite

WordPress plugin Astro Elementor Widgets Lite scored 84% from 54 tests.

About plugin

  • Plugin page: astro-elementor-w...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: Sep 20, 2020
  • Number of updates: 7
  • Update frequency: every 17.7 days
  • Top authors: rabiulislamrobi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,263 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.54ms] Passed 4 tests

Server-side resources used by Astro Elementor Widgets Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.38 ▼6.52
Dashboard /wp-admin3.32 ▲0.0144.64 ▼1.86
Posts /wp-admin/edit.php3.37 ▲0.0141.82 ▼7.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.09 ▼20.43
Media Library /wp-admin/upload.php3.24 ▲0.0133.53 ▼3.80

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Astro Elementor Widgets Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.57 ▼1.014.77 ▲3.2539.48 ▼1.55
Dashboard /wp-admin2,216 ▲285.84 ▲0.9394.89 ▼5.3839.25 ▼2.94
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0335.34 ▼5.1931.76 ▼3.81
Add New Post /wp-admin/post-new.php1,543 ▲2323.53 ▲0.33621.68 ▼51.2753.22 ▼2.14
Media Library /wp-admin/upload.php1,398 ▲134.27 ▲0.05104.45 ▼16.5346.01 ▼1.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • aewlite_plugin_version
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/astro-elementor-widgets-lite/widgets/pricing-table/pricing-table.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/astro-elementor-widgets-lite/widgets/preview-card/preview-card.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: astro, addons, elementor widgets, elementor addons, elementor elements...

astro-elementor-widgets-lite/astro-elementor-widgets-lite.php Passed 13 tests

The main file in "Astro Elementor Widgets Lite" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
A modern collection of elementor widgets

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
There were no executable files found in this plugin2,728 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP41883152,557
CSS429167
JavaScript2114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity7.25
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods34
▷ Static methods12.94%
▷ Public methods2882.35%
▷ Protected methods411.76%
▷ Private methods25.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin