84% multi-image-slider-widget

Code Review | Multi Image Slider Widget

WordPress plugin Multi Image Slider Widget scored84%from 54 tests.

About plugin

  • Plugin page: multi-image-slide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 28, 2015
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: korchung (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /7,585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.53ms] Passed 4 tests

This is a short check of server-side resources used by Multi Image Slider Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.20 ▼3.14
Dashboard /wp-admin3.39 ▲0.0843.08 ▼9.51
Posts /wp-admin/edit.php3.44 ▲0.0849.27 ▲1.56
Add New Post /wp-admin/post-new.php5.97 ▲0.08100.09 ▼1.49
Media Library /wp-admin/upload.php3.31 ▲0.0834.53 ▲0.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_multi-image-slider-widget-id
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Image Slider Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲23313.82 ▼0.568.81 ▲7.1540.17 ▲0.80
Dashboard /wp-admin2,211 ▲265.84 ▲0.97107.17 ▼11.6042.81 ▼4.57
Posts /wp-admin/edit.php2,091 ▲52.02 ▲0.0138.62 ▼0.3635.33 ▲3.07
Add New Post /wp-admin/post-new.php1,539 ▲2518.13 ▼5.56601.66 ▼74.3555.61 ▼2.61
Media Library /wp-admin/upload.php1,390 ▲54.22 ▲0.0599.04 ▼3.8142.39 ▼2.67

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_multi-image-slider-widget-id

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
Even though everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multi-image-slider-widget/multi-image-slider-widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (47 tag instead of maximum 10)
You can look at the official readme.txt

multi-image-slider-widget/multi-image-slider-widget.php Passed 13 tests

The main PHP script in "Multi Image Slider Widget" version 1.0 is automatically included on every request by WordPress
75 characters long description:
Display Multi Images from your Media Library in a Modern Responsive Slider.

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
Good job! No executable or dangerous file extensions detected636 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13064394
CSS33817238
JavaScript20154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity14.75
▷ Minimum method complexity1.00
▷ Maximum method complexity32.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/next.png1.32KB1.58KB0.00%
assets/img/prev.png1.33KB1.59KB0.00%
assets/img/close.png0.27KB0.29KB0.00%