77% sheeble-share-widget

Code Review | Woocommerce Product RSS Widget

WordPress plugin Woocommerce Product RSS Widget scored77%from 54 tests.

About plugin

  • Plugin page: sheeble-share-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Jan 3, 2016
  • Latest release: Jan 3, 2016
  • Number of updates: 2
  • Update frequency: every 12.0 days
  • Top authors: BuddyBoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,138 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.10MB] [CPU: ▼3.76ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce Product RSS Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2133.60 ▼6.32
Dashboard /wp-admin3.39 ▲0.0842.65 ▼2.57
Posts /wp-admin/edit.php3.50 ▲0.1446.37 ▲0.29
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.81 ▼6.04
Media Library /wp-admin/upload.php3.31 ▲0.0834.39 ▼0.12
Sheeble Share Options /wp-admin/options-general.php?page=sheeble-share-widget/wcbfeed.php3.2834.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_rfw_dock
wcbfeed_rss_image_size
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce Product RSS Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17213.95 ▼0.609.15 ▲7.5640.57 ▼0.30
Dashboard /wp-admin2,212 ▲275.90 ▲0.83108.56 ▲1.7338.76 ▼1.04
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0339.41 ▲4.2836.19 ▲2.57
Add New Post /wp-admin/post-new.php1,535 ▲2123.51 ▲5.88651.12 ▲21.5452.77 ▼1.08
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.02101.37 ▲5.2443.05 ▲1.44
Sheeble Share Options /wp-admin/options-general.php?page=sheeble-share-widget/wcbfeed.php9742.0322.4926.36

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_rfw_dock
    • wcbfeed_rss_image_size
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sheeble-share-widget/includes/wcbfeed-header.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/sheeble-share-widget/index.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheeble-share-widget/wcbfeed.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sheeble-share-widget/functions.php:9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sheeble-share-widget/index.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sheeble-share-widget/includes/wcbfeed-option-page.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/sheeble-share-widget/index.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sheeble-share-widget/woocommerce-better-feeds.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sheeble-share-widget/includes/wcbfeed-footer.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (Download the RSS Feed Widget installation package and extract the files on), #2 (Create a new directory named `RSS Feed Widget` in the `wp-content/plugins`), #3 (Log in to the WordPress Dashboard and activate the RSS Feed Widget plugin.), #4 (Once the plugin is activated, a new **RSS Feed Widget** will appear in your Wordpress admin -> appearance -> widgets.)
Please take inspiration from this readme.txt

sheeble-share-widget/index.php 85% from 13 tests

The main PHP script in "Woocommerce Product RSS Widget" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("sheeble-share-widget.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 374 characters long)

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
Good job! No executable or dangerous file extensions detected1,392 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript270469819
PHP712322335
CSS33623196
PO File1111142

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity6.14
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions10
▷ Named functions10100.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
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Backend.png79.36KB27.80KB▼ 64.97%
images/controls.png2.74KB1.42KB▼ 48.29%
Product Output.png66.94KB24.86KB▼ 62.86%