83% ele-pack-addons

Code Review | Ele Pack Addons

WordPress plugin Ele Pack Addons scored83%from 54 tests.

About plugin

  • Plugin page: ele-pack-addons
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2021
  • Latest release: Oct 20, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: imran150 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /873 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.51ms] Passed 4 tests

This is a short check of server-side resources used by Ele Pack Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0249.23 ▲8.19
Dashboard /wp-admin3.33 ▲0.0353.96 ▲1.57
Posts /wp-admin/edit.php3.38 ▲0.0250.96 ▲3.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.45 ▼17.71
Media Library /wp-admin/upload.php3.25 ▲0.0239.63 ▼1.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Ele Pack Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.29 ▼0.062.11 ▲0.4042.44 ▼1.43
Dashboard /wp-admin2,212 ▲355.59 ▼0.0983.29 ▼8.7240.79 ▲1.08
Posts /wp-admin/edit.php2,120 ▲202.02 ▼0.0138.38 ▼0.5934.57 ▲1.34
Add New Post /wp-admin/post-new.php1,540 ▲923.18 ▲0.52676.34 ▼10.9451.49 ▼3.13
Media Library /wp-admin/upload.php1,420 ▲234.25 ▲0.0596.29 ▼20.4648.42 ▲0.00

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ele-pack-addons/widgets/ele-card/ele-card.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ele-pack-addons/ele-pack.php:87

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, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
  • Contributors: No valid plugin tags found
  • Screenshots: These screenshots do not have images: #1 (Card Element example.), #2 (Card Element hover and Card background and Card content change example.), #3 (Change button style example.), #4 (Card header enable/disable example.), #5 (Card button enable/disable example.)
The official readme.txt might help

ele-pack-addons/ele-pack.php 77% from 13 tests

The principal PHP file in "Ele Pack Addons" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ele-pack-addons.php" instead of "ele-pack.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,343 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2631581,284
CSS22359

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods15.00%
▷ Public methods1785.00%
▷ Protected methods315.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.48MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot_3.png88.35KB35.45KB▼ 59.88%
assets/banner-772x250.png63.64KB17.50KB▼ 72.51%
assets/Screenshot_1.png92.37KB35.42KB▼ 61.66%
assets/Screenshot_5.png80.55KB33.48KB▼ 58.44%
assets/icon-256x256.png10.48KB6.70KB▼ 36.05%