10% webdoone-simple-image-widget

Code Review | Webdoone Simple Image Widget

WordPress plugin Webdoone Simple Image Widget scored10%from 54 tests.

About plugin

  • Plugin page: webdoone-simple-i...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 29
  • Update frequency: every 6.1 days
  • Top authors: webdoone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,153 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/webdoone-simple-image-widget/simple-image.php+217
    Function create_function() is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼55.18ms] Passed 4 tests

A check of server-side resources used by Webdoone Simple Image Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.316.88 ▼32.32
Dashboard /wp-admin2.18 ▼1.176.56 ▼56.87
Posts /wp-admin/edit.php2.18 ▼1.186.62 ▼41.93
Add New Post /wp-admin/post-new.php2.18 ▼3.716.32 ▼89.60
Media Library /wp-admin/upload.php2.18 ▼1.056.49 ▼28.64

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Webdoone Simple Image Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲16714.43 ▲0.151.77 ▲0.2644.94 ▲1.92
Dashboard /wp-admin2,334 ▲1576.16 ▲0.48106.95 ▲15.1036.04 ▼3.06
Posts /wp-admin/edit.php2,259 ▲1593.44 ▲1.4947.35 ▲8.7032.73 ▼3.76
Add New Post /wp-admin/post-new.php1,528 ▼123.52 ▲0.49593.66 ▲4.4233.61 ▼23.52
Media Library /wp-admin/upload.php1,402 ▼14.13 ▼0.0883.31 ▼13.9445.59 ▲1.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/webdoone-simple-image-widget/simple-image.php+217
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_webdoonesimpleimage_widget
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webdoone-simple-image-widget/simple-image.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
6 plugin tags: image widget, picture, image, widget, photo...

webdoone-simple-image-widget/simple-image.php 92% from 13 tests

The main PHP file in "Webdoone Simple Image Widget" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webdoone-simple-image-widget.php" instead of "simple-image.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin257 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12047196
PO File19935
JavaScript11326

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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