89% awesome-elements-for-elementor

Code Review | Awesome Elements For Elementor

WordPress plugin Awesome Elements For Elementor scored89%from 54 tests.

About plugin

  • Plugin page: awesome-elements-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Nov 15, 2022
  • Number of updates: 10
  • Update frequency: every 8.4 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by Awesome Elements For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0637.43 ▼3.04
Dashboard /wp-admin3.34 ▲0.0446.45 ▼2.57
Posts /wp-admin/edit.php3.39 ▲0.0444.88 ▼4.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.06 ▼7.07
Media Library /wp-admin/upload.php3.27 ▲0.0451.86 ▲20.23

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Elements For Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20014.05 ▼0.376.69 ▲4.8841.78 ▼8.99
Dashboard /wp-admin2,224 ▲365.79 ▼0.08103.18 ▼14.0539.66 ▼5.32
Posts /wp-admin/edit.php2,106 ▲172.07 ▲0.0739.14 ▲3.8733.74 ▼2.08
Add New Post /wp-admin/post-new.php1,536 ▼623.08 ▲4.80657.43 ▲15.0759.06 ▲9.66
Media Library /wp-admin/upload.php1,403 ▲184.26 ▲0.02101.18 ▲3.3842.71 ▼1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #6 (Icon Box), #7 (More Coming soon)
The official readme.txt is a good inspiration

awesome-elements-for-elementor/tools.php 85% from 13 tests

The main file in "Awesome Elements For Elementor" v. 1.2.1 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: The principal plugin file should be the same as the plugin slug ("awesome-elements-for-elementor.php" instead of "tools.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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 detected3,143 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP205157512,431
CSS49439601
JavaScript32622111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods57
▷ Static methods11.75%
▷ Public methods4578.95%
▷ Protected methods1221.05%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pricing-header-bg.png3.02KB1.48KB▼ 51.00%
screenshots/banner-772x250.png63.84KB23.76KB▼ 62.78%
assets/img/single-team-member-3.png13.29KB5.66KB▼ 57.39%
assets/img/single-team-member-2.png17.65KB6.87KB▼ 61.08%
assets/img/pricing-header-style-two-bg.png5.55KB3.39KB▼ 38.93%