77% wpp-elementor-addons

Code Review | WPP Elementor Addons

WordPress plugin WPP Elementor Addons scored77%from 54 tests.

About plugin

  • Plugin page: wpp-elementor-addons
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Jul 23, 2021
  • Latest release: Aug 6, 2021
  • Number of updates: 10
  • Update frequency: every 1.6 days
  • Top authors: suhailahmad64 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,857 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.56ms] Passed 4 tests

A check of server-side resources used by WPP Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.01 ▲2.39
Dashboard /wp-admin3.41 ▲0.1045.32 ▼2.39
Posts /wp-admin/edit.php3.46 ▲0.1047.25 ▼0.58
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.99 ▲2.82
Media Library /wp-admin/upload.php3.33 ▲0.1041.86 ▲8.43
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=portfolio3.3333.66
Portfolio /wp-admin/edit.php?post_type=portfolio3.3733.80
Add New /wp-admin/post-new.php?post_type=portfolio3.4344.85
Portfolio Cats /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio3.3231.41

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPP Elementor Addons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11513.66 ▼0.731.81 ▲0.1552.10 ▲12.22
Dashboard /wp-admin2,253 ▲654.95 ▼0.0997.11 ▼5.7180.59 ▲37.72
Posts /wp-admin/edit.php2,142 ▲502.05 ▼0.0136.77 ▼7.1233.96 ▼1.91
Add New Post /wp-admin/post-new.php1,719 ▲19724.67 ▲1.57690.47 ▲40.0857.33 ▼1.60
Media Library /wp-admin/upload.php1,435 ▲444.22 ▼0.0695.32 ▼3.2368.86 ▲22.48
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=portfolio1,3572.1525.5732.64
Portfolio /wp-admin/edit.php?post_type=portfolio1,1191.9834.1328.51
Add New /wp-admin/post-new.php?post_type=portfolio2,5877.74172.58122.33
Portfolio Cats /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio1,3122.2725.0126.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+235
    Undefined index: field_1_name
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+263
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+236
    Undefined index: field_1_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+238
    Undefined index: field_2_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+239
    Undefined index: field_2_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+241
    Undefined index: field_3_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+242
    Undefined index: field_3_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+244
    Undefined index: field_4_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+245
    Undefined index: field_4_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+247
    Undefined index: field_5_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+248
    Undefined index: field_5_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+250
    Undefined index: field_6_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+251
    Undefined index: field_6_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+253
    Undefined index: field_7_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+254
    Undefined index: field_7_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+256
    Undefined index: field_8_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+257
    Undefined index: field_8_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+259
    Undefined index: field_9_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+260
    Undefined index: field_9_value
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+262
    Undefined index: field_10_name
    • > GET request to /wp-admin/post-new.php?post_type=portfolio
    • > Notice in wp-content/plugins/wpp-elementor-addons/index.php+263
    Undefined index: field_10_value

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpp-elementor-addons/index.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPC\\add_action() in wp-content/plugins/wpp-elementor-addons/elementor-widget.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: animated cd cover, animated album grid, portfolio filter gallery, responsive grid for woocommerce, elementor addons...

wpp-elementor-addons/index.php 69% from 13 tests

"WPP Elementor Addons" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.2.1" instead of "5.2")
  • Domain Path: The domain path should use only dashes and lowercase characters ("https://wordpresspioneers.com")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpp-elementor-addons.php" instead of "index.php")

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 plugin2,395 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS2113251,234
PHP53801181,161

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods1970.37%
▷ Protected methods725.93%
▷ Private methods13.70%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.43MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png185.43KB198.16KB0.00%
index_files/wct_grid_assets/star-rating-2.png27.06KB5.02KB▼ 81.47%
index_files/wct_grid_assets/star-rating.png66.29KB11.30KB▼ 82.96%
screenshot-1.png160.75KB174.55KB0.00%