84% image-widget-deluxe

Code Review | Image Widget Deluxe

WordPress plugin Image Widget Deluxe scored84%from 54 tests.

About plugin

  • Plugin page: image-widget-deluxe
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 4, 2015
  • Latest release: May 26, 2019
  • Number of updates: 24
  • Update frequency: every 56.8 days
  • Top authors: mRommel (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /28,648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.58ms] Passed 4 tests

Server-side resources used by Image Widget Deluxe
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.62 ▼1.97
Dashboard /wp-admin3.41 ▲0.1151.33 ▲1.27
Posts /wp-admin/edit.php3.53 ▲0.1854.82 ▲6.47
Add New Post /wp-admin/post-new.php5.99 ▲0.1183.11 ▼14.26
Media Library /wp-admin/upload.php3.32 ▲0.0938.00 ▲4.64

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_rommeled_image
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Image Widget Deluxe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18714.77 ▲0.161.77 ▼0.2641.14 ▼2.68
Dashboard /wp-admin2,350 ▲1626.46 ▲0.55133.52 ▲17.7242.53 ▼4.59
Posts /wp-admin/edit.php2,264 ▲1753.36 ▲1.3155.41 ▲18.3034.34 ▼1.67
Add New Post /wp-admin/post-new.php1,535 ▼223.43 ▲0.13653.70 ▲6.0836.21 ▼25.16
Media Library /wp-admin/upload.php1,464 ▲734.09 ▼0.1287.02 ▼25.1144.81 ▼0.44

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_rommeled_image
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/image-widget-deluxe/image-widget-deluxe.php

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 93% 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
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

image-widget-deluxe/image-widget-deluxe.php 92% from 13 tests

The primary PHP file in "Image Widget Deluxe" version 2.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin560 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP16492308
CSS2190105
JavaScript1202977
PO File1446570

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity84.00
▷ Minimum class complexity84.00
▷ Maximum class complexity84.00
Average method complexity11.38
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
PNG images were not found in this plugin