90% euw-elementor-used-widgets

Code Review | EUW Elementor Used Widgets

WordPress plugin EUW Elementor Used Widgets scored90%from 54 tests.

About plugin

  • Plugin page: euw-elementor-use...
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 27, 2021
  • Latest release: Mar 27, 2021
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: dependencyinjection (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /390 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by EUW Elementor Used Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.48 ▼6.44
Dashboard /wp-admin3.31 ▲0.0144.04 ▼6.59
Posts /wp-admin/edit.php3.36 ▲0.0145.93 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.53 ▼23.42
Media Library /wp-admin/upload.php3.23 ▲0.0134.97 ▲4.54
Used widgets /wp-admin/admin.php?page=euw-elementor-used-widgets3.2031.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

EUW Elementor Used Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.78 ▼0.4938.10 ▼5.52
Dashboard /wp-admin2,200 ▲155.99 ▲0.12105.19 ▼0.4039.17 ▼5.44
Posts /wp-admin/edit.php2,086 ▼02.01 ▲0.0235.85 ▼0.6434.70 ▲0.04
Add New Post /wp-admin/post-new.php1,514 ▼317.75 ▲0.17667.36 ▲49.4457.83 ▲5.39
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0192.61 ▼5.5639.88 ▼5.23
Used widgets /wp-admin/admin.php?page=euw-elementor-used-widgets7472.0223.3024.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (TODO) image missing
The official readme.txt is a good inspiration

euw-elementor-used-widgets/euw-elementor-used-widgets.php Passed 13 tests

Analyzing the main PHP file in "EUW Elementor Used Widgets" version 0.1.1
58 characters long description:
Displays the widgets which are currently used by elementor

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 detected156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22119156

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected