10% widgetpack-review-system

Code Review | WidgetPack Review System

WordPress plugin WidgetPack Review System scored 10% from 54 tests.

About plugin

  • Plugin page: widgetpack-review...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.6
  • WordPress version: 6.3.1
  • First release: Mar 30, 2016
  • Latest release: Sep 12, 2016
  • Number of updates: 7
  • Update frequency: every 23.7 days
  • Top authors: widgetpack (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 3,586 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/widgetpack-review-system/api/wprev-api.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; WPacReviewAPI has a deprecated constructor

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.89ms] Passed 4 tests

Analyzing server-side resources used by WidgetPack Review System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.17 ▼1.06
Dashboard /wp-admin3.32 ▲0.0244.98 ▼3.48
Posts /wp-admin/edit.php3.37 ▲0.0250.50 ▲5.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.63 ▼20.64
Media Library /wp-admin/upload.php3.24 ▲0.0240.12 ▲1.61
WidgetPack /wp-admin/edit-comments.php?page=wprev3.1930.48
All Comments /wp-admin/edit-comments.php3.2633.57

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
wprev_version
widget_theysaidso_widget
wprev_active
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WidgetPack Review System
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.67 ▼0.981.58 ▼0.1041.40 ▲1.79
Dashboard /wp-admin2,220 ▲355.79 ▼0.0295.27 ▼9.6338.36 ▼1.27
Posts /wp-admin/edit.php2,106 ▲172.01 ▲0.0135.21 ▲0.2931.57 ▼9.37
Add New Post /wp-admin/post-new.php1,549 ▲1323.04 ▼0.11649.26 ▼31.7051.11 ▲2.05
Media Library /wp-admin/upload.php1,405 ▲204.21 ▲0.02111.61 ▼9.6746.15 ▼0.74
WidgetPack /wp-admin/edit-comments.php?page=wprev1,2221.9626.5796.25
All Comments /wp-admin/edit-comments.php1,8122.2734.1629.49

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
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • wprev_version
    • wprev_active
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/edit-comments.php?page=wprev
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

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 take a closer look at the following
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in wp-content/plugins/widgetpack-review-system/wprev-manage.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/widgetpack-review-system/wprev-comments.php:2
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
    • > PHP Fatal error
      require(): Failed opening required 'ABSPATHwp-includes/version.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgetpack-review-system/wprev-manage.php on line 8
    • > PHP Warning
      require_once(ABSPATHWPINC/http.php): failed to open stream: No such file or directory in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/http.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/wprev-manage.php on line 8
    • > PHP Warning
      require_once(ABSPATHWPINC/http.php): failed to open stream: No such file or directory in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit-comments.php?page=wprev
    • > Javascript (severe) in unknown
    /wp-content/plugins/widgetpack-review-system/static/js/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    • > GET request to /wp-admin/edit-comments.php?page=wprev
    • > Network (severe)
    https://embed.widgetpack.com/widget.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
You can look at the official readme.txt

widgetpack-review-system/wprev.php 85% from 13 tests

Analyzing the main PHP file in "WidgetPack Review System" version 1.2
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("widgetpack-review-system.php" instead of "wprev.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
There were no executable files found in this plugin2,464 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP82001771,871
CSS38421456
JavaScript255137

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.33
▷ Minimum class complexity2.00
▷ Maximum class complexity84.00
Average method complexity7.47
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
PNG images were not found in this plugin