84% easy-shuffle-widget

Code Review | Easy Shuffle Widget

WordPress plugin Easy Shuffle Widget scored 84% from 54 tests.

About plugin

  • Plugin page: easy-shuffle-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.1
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: May 11, 2016
  • Number of updates: 5
  • Update frequency: every 50.0 days
  • Top authors: dbmartin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Easy Shuffle Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1939.74 ▼1.64
Dashboard /wp-admin3.49 ▲0.1949.26 ▼0.53
Posts /wp-admin/edit.php3.60 ▲0.2547.92 ▲0.48
Add New Post /wp-admin/post-new.php6.07 ▲0.1891.35 ▼3.26
Media Library /wp-admin/upload.php3.41 ▲0.1837.70 ▲2.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_easy-shuffle-widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy Shuffle Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼0.914.48 ▲2.3240.20 ▼10.02
Dashboard /wp-admin2,207 ▲165.84 ▼0.04109.24 ▲1.1339.16 ▼7.86
Posts /wp-admin/edit.php2,090 ▲42.01 ▼0.1439.04 ▲2.3834.32 ▼2.88
Add New Post /wp-admin/post-new.php1,527 ▼1518.03 ▼0.20593.02 ▼34.9955.26 ▼7.47
Media Library /wp-admin/upload.php1,386 ▲44.21 ▼0.0198.14 ▼0.6644.58 ▲5.16

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_easy-shuffle-widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Shuffle_Widget_Fields' not found in wp-content/plugins/easy-shuffle-widget/inc/widget-form.php:21

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: random, comments, users, widget, users-widget...

easy-shuffle-widget/easy-shuffle-widget.php 92% from 13 tests

Analyzing the main PHP file in "Easy Shuffle Widget" version 1.0
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

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
Everything looks great! No dangerous files found in this plugin1,452 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP94509651,092
CSS3445219
JavaScript25162106
Markdown121035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity24.80
▷ Minimum class complexity7.00
▷ Maximum class complexity69.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods62
▷ Static methods4267.74%
▷ Public methods6096.77%
▷ Protected methods00.00%
▷ Private methods23.23%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected