72% the-pack-addon

Code Review | The Pack Elementor addons (Header Footer & WooCommerce Builder, Template Library)

WordPress plugin The Pack Elementor addons (Header Footer & WooCommerce Builder, Template Library) scored72%from 54 tests.

About plugin

  • Plugin page: the-pack-addon
  • Plugin version: 2.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 25, 2021
  • Latest release: Nov 25, 2023
  • Number of updates: 39
  • Update frequency: every 22.9 days
  • Top authors: webangon (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /16,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by The Pack Elementor addons (Header Footer & WooCommerce Builder, Template Library)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.94 ▼5.15
Dashboard /wp-admin3.31 ▼0.0345.49 ▼14.33
Posts /wp-admin/edit.php3.36 ▲0.0044.14 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.88 ▼3.16
Media Library /wp-admin/upload.php3.23 ▲0.0032.54 ▼0.48
Starter Sites /wp-admin/admin.php?page=the-pack-demo3.0023.13
The Pack /wp-admin/admin.php?page=the-pack3.0028.15

Server storage [IO: ▲7.57MB] [DB: ▲0.08MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 734 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
_thepack
db_upgraded

Browser metrics Passed 4 tests

The Pack Elementor addons (Header Footer & WooCommerce Builder, Template Library): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5414.24 ▼0.081.62 ▼0.0735.89 ▼7.86
Dashboard /wp-admin2,189 ▲115.53 ▼0.1287.44 ▼27.8439.20 ▼8.75
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0034.42 ▼3.4435.45 ▼1.54
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▼0.09693.92 ▲7.5661.84 ▲7.11
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0595.38 ▼1.3741.91 ▲0.85
Starter Sites /wp-admin/admin.php?page=the-pack-demo280.410.103.48
The Pack /wp-admin/admin.php?page=the-pack280.410.114.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • _thepack

Smoke tests 25% from 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/iconbox_alternate/view.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/imgbox_4/view.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/woocommerce/woo-category/style_1.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/separator/view.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/woocommerce/woo-filter-sidebar/view.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/case_grid/two.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/case_grid/one.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/circle-text/view.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/cta2/view.php
    • > /wp-content/plugins/the-pack-addon/includes/widgets/element/star-rating/view.php
  • 845× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/the-pack-addon/includes/widgets/element/imgbox_4/view.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/the-pack-addon/includes/widgets/element/scroll_to/two.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/the-pack-addon/includes/widgets/element/videobg-pop/view.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/the-pack-addon/includes/widgets/element/team_2/view.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_pack_render_icon() in wp-content/plugins/the-pack-addon/includes/widgets/element/offscreen_menu/view.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/the-pack-addon/includes/widgets/element/counter_circle/one.php on line 13
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/the-pack-addon/includes/widgets/element/slidercarousel/view.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/the-pack-addon/includes/widgets/element/gallery_carousel/view.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/the-pack-addon/includes/widgets/element/iconbox_alternate/view.php on line 5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/the-pack-addon/includes/widgets/element/testimonial_1/two.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=the-pack-demo
    • > Network (severe)
    wp-admin/admin.php?page=the-pack-demo - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=the-pack
    • > Network (severe)
    wp-admin/admin.php?page=the-pack - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: template library, header footer, elementor widgets, addons, elementor

the-pack-addon/index.php 69% from 13 tests

The main file in "The Pack Elementor addons (Header Footer & WooCommerce Builder, Template Library)" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("the-pack-addon.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Everything looks great! No dangerous files found in this plugin145,932 lines of code in 711 files:
LanguageFilesBlank linesComment linesLines of code
PHP50513,2262,97587,317
CSS1071,97761320,036
HTML14,603013,870
JavaScript333,44782213,739
SVG48126,149
Sass1595434,811
JSON24010

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.28
Average class complexity10.80
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces24
Interfaces0
Traits1
Classes325
▷ Abstract classes123.69%
▷ Concrete classes31396.31%
▷ Final classes20.64%
Methods2,106
▷ Static methods29413.96%
▷ Public methods1,62176.97%
▷ Protected methods37617.85%
▷ Private methods1095.18%
Functions107
▷ Named functions9588.79%
▷ Anonymous functions1211.21%
Constants48
▷ Global constants918.75%
▷ Class constants3981.25%
▷ Public constants39100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%