73% orenda-widgets-for-elementor

Code Review | Orenda Elementor Plugin

WordPress plugin Orenda Elementor Plugin scored73%from 54 tests.

About plugin

  • Plugin page: orenda-widgets-fo...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2022
  • Latest release: Oct 13, 2022
  • Number of updates: 29
  • Update frequency: every 7.8 days
  • Top authors: davidfoxorenda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,113 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.24MB] [CPU: ▼41.20ms] Passed 4 tests

An overview of server-side resources used by Orenda Elementor Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7313.55 ▼25.04
Dashboard /wp-admin2.77 ▼0.5316.51 ▼40.89
Posts /wp-admin/edit.php2.78 ▼0.5819.81 ▼30.06
Add New Post /wp-admin/post-new.php2.77 ▼3.1129.79 ▼68.82
Media Library /wp-admin/upload.php2.77 ▼0.4516.29 ▼21.25
OrendaWidgets /wp-admin/admin.php?page=orenda-admin2.7822.64
PWA Settings /wp-admin/admin.php?page=orenda_widget_options2.7819.03

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 121 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
active_widgets
widget_recent-posts
widgets_hash
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Orenda Elementor Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲24724.42 ▲10.0458.11 ▲56.3241.16 ▼2.62
Dashboard /wp-admin2,285 ▲10312.85 ▲6.96302.65 ▲187.0941.70 ▼4.91
Posts /wp-admin/edit.php2,171 ▲859.23 ▲7.22231.87 ▲196.6336.27 ▲4.25
Add New Post /wp-admin/post-new.php1,396 ▼13719.05 ▼3.90667.82 ▼7.1628.27 ▼25.70
Media Library /wp-admin/upload.php1,089 ▼2999.26 ▲5.06305.90 ▲197.8947.57 ▼0.29
OrendaWidgets /wp-admin/admin.php?page=orenda-admin95812.79297.7332.87
PWA Settings /wp-admin/admin.php?page=orenda_widget_options91612.77289.7829.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/orenda-widgets-for-elementor/orenda-init.php+224
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • active_widgets
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widgets_hash
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 33 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orenda_widget_options
    • > Notice in wp-content/plugins/orenda-widgets-for-elementor/admin/pwa_settings.php+105
    Trying to access array offset on value of type bool
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orenda_widget_options
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: visual editor, payment, payee, elementor, statement...

orenda-widgets-for-elementor/orenda-init.php 77% from 13 tests

The primary PHP file in "Orenda Elementor Plugin" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 487 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("orenda-widgets-for-elementor.php" instead of "orenda-init.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin1,948 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP27508641,752
JavaScript71384
SVG780078
CSS21832
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.52
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods174
▷ Static methods00.00%
▷ Public methods14784.48%
▷ Protected methods2715.52%
▷ Private methods00.00%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png18.93KB8.38KB▼ 55.72%