73% bdthemes-element-pack-lite

Code Review | Element Pack Elementor Addons (Header Footer, Free Template Library, Grid, Carousel, Table, Parallax Animation, Register Form, Twitter Grid)

WordPress plugin Element Pack Elementor Addons (Header Footer, Free Template Library, Grid, Carousel, Table, Parallax Animation, Register Form, Twitter Grid) scored73%from 54 tests.

About plugin

  • Plugin page: bdthemes-element-...
  • Plugin version: 5.4.9
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Dec 3, 2023
  • Number of updates: 173
  • Update frequency: every 8.9 days
  • Top authors: bdthemes (72.25%)mohammaadfarid (28.32%)

Code review

54 tests

User reviews

155 reviews

Install metrics

100,000+ active /1,616,103 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲5.30MB] [CPU: ▲25.00ms] 75% from 4 tests

A check of server-side resources used by Element Pack Elementor Addons (Header Footer, Free Template Library, Grid, Carousel, Table, Parallax Animation, Register Form, Twitter Grid)
The following require your attention
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.30MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.20 ▲5.7461.94 ▲24.59
Dashboard /wp-admin9.22 ▲5.9271.60 ▲24.29
Posts /wp-admin/edit.php9.22 ▲5.8781.91 ▲34.62
Add New Post /wp-admin/post-new.php9.55 ▲3.66110.93 ▲16.48
Media Library /wp-admin/upload.php9.22 ▲5.9970.13 ▲37.31
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2262.09

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,034 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
fs_active_plugins
theysaidso_admin_options
widget_recent-comments
fs_debug_mode
fs_accounts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Element Pack Elementor Addons (Header Footer, Free Template Library, Grid, Carousel, Table, Parallax Animation, Register Form, Twitter Grid)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.32 ▲0.071.58 ▼0.1830.20 ▼13.09
Dashboard /wp-admin2,231 ▲545.49 ▼0.0997.51 ▼2.5346.04 ▲1.17
Posts /wp-admin/edit.php2,140 ▲402.14 ▲0.1338.96 ▼3.3137.98 ▲3.95
Add New Post /wp-admin/post-new.php1,550 ▲2422.88 ▼0.23695.93 ▲69.6654.01 ▲2.22
Media Library /wp-admin/upload.php1,442 ▲454.20 ▲0.05107.15 ▲1.0649.42 ▲7.79
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0881.6528.5231.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/bdthemes-element-pack-lite/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • fs_active_plugins
    • can_compress_scripts
    • fs_debug_mode
    • widget_recent-comments
    • fs_accounts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/bdthemes-element-pack-lite/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Warning
      Use of undefined constant BDTEP__FILE__ - assumed 'BDTEP__FILE__' (this will throw an Error in a future version of PHP) in wp-content/plugins/bdthemes-element-pack-lite/includes/helper.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/bdthemes-element-pack-lite/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bdthemes-element-pack-lite/includes/helper.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ElementPack_Settings_API' not found in wp-content/plugins/bdthemes-element-pack-lite/admin/admin-settings.php:34
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/bdthemes-element-pack-lite/bdthemes-element-pack-lite.php on line 25
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/bdthemes-element-pack-lite/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bdthemes-element-pack-lite/bdthemes-element-pack-lite.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementPack\\add_action() in wp-content/plugins/bdthemes-element-pack-lite/admin/admin-notice.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/bdthemes-element-pack-lite/admin/optimizer/vendor/matthiasmullie/minify/src/CSS.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

bdthemes-element-pack-lite/bdthemes-element-pack-lite.php 85% from 13 tests

The main PHP script in "Element Pack Elementor Addons (Header Footer, Free Template Library, Grid, Carousel, Table, Parallax Animation, Register Form, Twitter Grid)" version 5.4.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0.0" instead of "3.0.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)

Code Analysis 97% from 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
There were no executable files found in this plugin170,725 lines of code in 940 files:
LanguageFilesBlank linesComment linesLines of code
PHP47022,61122,371126,881
JavaScript1194,0371,99425,890
SVG1934494616,336
CSS1444011555
LESS11031535
Markdown2890252
JSON800218
YAML10046
Dockerfile12011
HTML1001

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.83
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces159
Interfaces1
Traits5
Classes301
▷ Abstract classes103.32%
▷ Concrete classes29196.68%
▷ Final classes10.34%
Methods3,151
▷ Static methods2889.14%
▷ Public methods2,34974.55%
▷ Protected methods35511.27%
▷ Private methods44714.19%
Functions223
▷ Named functions18884.30%
▷ Anonymous functions3515.70%
Constants174
▷ Global constants11867.82%
▷ Class constants5632.18%
▷ Public constants56100.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
17 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/lens.png0.15KB0.10KB▼ 36.71%
assets/images/selectarrow.png1.03KB0.21KB▼ 79.16%
assets/images/marker-shadow.png0.60KB1.16KB0.00%
assets/images/datatables/sort_asc.png0.16KB0.25KB0.00%
assets/images/datatables/sort_asc_disabled.png0.14KB0.25KB0.00%