83% powerpack-lite-for-elementor

Code Review | PowerPack Addons for Elementor (Free Widgets, Extensions and Templates)

WordPress plugin PowerPack Addons for Elementor (Free Widgets, Extensions and Templates) scored83%from 54 tests.

About plugin

  • Plugin page: powerpack-lite-fo...
  • Plugin version: 2.7.12
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 143
  • Update frequency: every 12.5 days
  • Top authors: ideaboxcreations (55.24%)simrandeep (44.76%)ibachal (1.4%)

Code review

54 tests

User reviews

327 reviews

Install metrics

90,000+ active /1,987,809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.56ms] Passed 4 tests

This is a short check of server-side resources used by PowerPack Addons for Elementor (Free Widgets, Extensions and Templates)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.35 ▼6.77
Dashboard /wp-admin3.34 ▼0.0068.36 ▲6.25
Posts /wp-admin/edit.php3.39 ▲0.0448.91 ▼1.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.95 ▼9.56
Media Library /wp-admin/upload.php3.26 ▲0.0435.31 ▲3.90
PowerPack /wp-admin/admin.php?page=powerpack-settings3.2832.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for PowerPack Addons for Elementor (Free Widgets, Extensions and Templates)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲2414.72 ▲0.001.54 ▼0.5037.41 ▼6.23
Dashboard /wp-admin2,198 ▲185.54 ▼0.13104.58 ▲10.7941.88 ▼4.78
Posts /wp-admin/edit.php2,106 ▲62.09 ▲0.1237.95 ▼4.1533.65 ▼2.69
Add New Post /wp-admin/post-new.php1,532 ▲623.46 ▲0.24651.08 ▲18.8253.75 ▼8.04
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0197.35 ▲2.0644.02 ▲2.11
PowerPack /wp-admin/admin.php?page=powerpack-settings1,6992.0126.3850.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/powerpack-lite-for-elementor/classes/wpml/class-wpml-pp-business-hours.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PowerpackElementsLite\\Classes\\PP_Admin_Settings' not found in wp-content/plugins/powerpack-lite-for-elementor/includes/admin/admin-settings-integration.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/powerpack-lite-for-elementor/classes/wpml/class-wpml-pp-icon-list.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/powerpack-lite-for-elementor/classes/wpml/class-wpml-pp-advanced-accordion.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/powerpack-lite-for-elementor/classes/wpml/class-wpml-pp-image-hotspots.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/powerpack-lite-for-elementor/includes/helper-functions.php:311
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pp_elements_lite_get_modules() in wp-content/plugins/powerpack-lite-for-elementor/includes/admin/admin-settings-modules.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/powerpack-lite-for-elementor/classes/wpml/class-wpml-pp-image-accordion.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pp_elements_lite_get_extensions() in wp-content/plugins/powerpack-lite-for-elementor/includes/admin/admin-settings-extensions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PowerpackElementsLite\\Classes\\add_action() in wp-content/plugins/powerpack-lite-for-elementor/classes/class-pp-templates-lib.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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 require images: #9 (Team Member), #10 (Logo Carousel)
You can take inspiration from this readme.txt

powerpack-lite-for-elementor/powerpack-lite-elementor.php 85% from 13 tests

"PowerPack Addons for Elementor (Free Widgets, Extensions and Templates)" version 2.7.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("powerpack-lite-for-elementor.php" instead of "powerpack-lite-elementor.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected98,430 lines of code in 276 files:
LanguageFilesBlank linesComment linesLines of code
PHP1678,3709,38767,146
JavaScript323,1152,80010,786
CSS161,54022810,195
Sass53570987,518
PO File11,1724,6552,444
SVG403206
JSON20079
XML17856

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.56
▷ Minimum class complexity1.00
▷ Maximum class complexity204.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces75
Interfaces0
Traits0
Classes161
▷ Abstract classes53.11%
▷ Concrete classes15696.89%
▷ Final classes10.64%
Methods1,301
▷ Static methods1189.07%
▷ Public methods76258.57%
▷ Protected methods50839.05%
▷ Private methods312.38%
Functions69
▷ Named functions3550.72%
▷ Anonymous functions3449.28%
Constants20
▷ Global constants630.00%
▷ Class constants1470.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/pp-logo-sm.png5.56KB2.05KB▼ 63.19%
assets/images/powerpackelements.png4.92KB2.03KB▼ 58.87%
assets/images/icon-256x256.png7.15KB3.71KB▼ 48.11%