67% yadore-widget

Code Review | Yadore Widget

WordPress plugin Yadore Widget scored67%from 54 tests.

About plugin

  • Plugin page: yadore-widget
  • Plugin version: 1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 11
  • Update frequency: every 18.5 days
  • Top authors: yadoregmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /344 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.98ms] Passed 4 tests

Server-side resources used by Yadore Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0233.54 ▼9.28
Dashboard /wp-admin3.39 ▲0.0949.53 ▼11.29
Posts /wp-admin/edit.php3.45 ▲0.1052.92 ▲8.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.37 ▲4.77
Media Library /wp-admin/upload.php3.32 ▲0.1035.36 ▲3.88
Settings /wp-admin/edit.php?post_type=yadore_widget_feed&page=yadore_widget3.2733.20
Feeds /wp-admin/edit.php?post_type=yadore_widget_feed3.3736.68
Add new Feed /wp-admin/post-new.php?post_type=yadore_widget_feed3.4045.79

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Yadore Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,201 ▲46622.22 ▲7.9214.70 ▲12.5841.56 ▼6.46
Dashboard /wp-admin2,405 ▲21413.20 ▲8.32303.82 ▲195.7443.48 ▲2.20
Posts /wp-admin/edit.php2,328 ▲23912.02 ▲9.96103.04 ▲63.7130.72 ▼5.03
Add New Post /wp-admin/post-new.php6,214 ▲4,68126.40 ▲3.22732.03 ▲55.6338.03 ▼12.68
Media Library /wp-admin/upload.php1,570 ▲18213.40 ▲9.18137.33 ▲37.0842.27 ▼5.14
Settings /wp-admin/edit.php?post_type=yadore_widget_feed&page=yadore_widget2,07312.80132.0232.57
Feeds /wp-admin/edit.php?post_type=yadore_widget_feed1,27312.01100.5824.17
Add new Feed /wp-admin/post-new.php?post_type=yadore_widget_feed1,57212.6480.3532.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=yadore_widget_feed&page=yadore_widget
    • > Notice in wp-content/plugins/yadore-widget/lib/Yadore/Panels/Settings.php+59
    Undefined index: default_value
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=yadore_widget_feed
    • > Notice in wp-content/plugins/yadore-widget/lib/Yadore/Api/Connection.php+14
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/yadore-widget/index.php
  • 72× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/yadore-widget/templates/default/search-results.php on line 6
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/yadore-widget/templates/default/price-compare.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yadore-widget/lib/Integration/Gutenberg/block-feed.php:3
    • > PHP Notice
      Trying to get property 'results' of non-object in wp-content/plugins/yadore-widget/templates/bootstrap5/search-results.php on line 7
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/yadore-widget/templates/bootstrap5/loop-list.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/yadore-widget/templates/bootstrap5/search-form.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'xCORE\\Yadore\\Offer' not found in wp-content/plugins/yadore-widget/templates/default/loop-list.php:4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/yadore-widget/templates/bootstrap5/search-form.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'xCORE\\Yadore\\Offer' not found in wp-content/plugins/yadore-widget/templates/default/loop-grid.php:4
    • > PHP Notice
      Trying to get property 'offer' of non-object in wp-content/plugins/yadore-widget/templates/default/loop-grid.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=yadore_widget_feed
    • > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
    The block \"yadore-widget/feed\" is registered with an invalid category \"yadore-widget\".
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=yadore_widget_feed
    • > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
    The block \"yadore-widget/search\" is registered with an invalid category \"yadore-widget\".
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=yadore_widget_feed
    • > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
    The block \"yadore-widget/price-compare\" is registered with an invalid category \"yadore-widget\".

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: affiliate, yadore, cpc

yadore-widget/yadore-widget.php Passed 13 tests

The main PHP script in "Yadore Widget" version 1.3 is automatically included on every request by WordPress
99 characters long description:
Beste E-Commerce-Daten aus einer Quelle – vereinfacht und optimiert für Publisher und Advertiser

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,926 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP504876602,265
Sass1323843826
JavaScript63312324
CSS2365165
Markdown2510161
JSON400137
SVG10028
XML161420

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.19
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods113
▷ Static methods1815.93%
▷ Public methods10895.58%
▷ Protected methods32.65%
▷ Private methods21.77%
Functions12
▷ Named functions216.67%
▷ Anonymous functions1083.33%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin