73% mislider

Code Review | Multi Item Responsive Slider

WordPress plugin Multi Item Responsive Slider scored73%from 54 tests.

About plugin

  • Plugin page: mislider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: May 5, 2020
  • Number of updates: 23
  • Update frequency: every 64.4 days
  • Top authors: cnaveenkumar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,747 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.88ms] Passed 4 tests

This is a short check of server-side resources used by Multi Item Responsive Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0546.10 ▲1.09
Dashboard /wp-admin3.36 ▲0.0548.92 ▼8.58
Posts /wp-admin/edit.php3.41 ▲0.0549.47 ▼0.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.16 ▼3.16
Media Library /wp-admin/upload.php3.28 ▲0.0537.04 ▲3.07
All Slider /wp-admin/edit.php?post_type=mislider3.3241.76
Add New /wp-admin/post-new.php?post_type=mislider3.4349.75

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Item Responsive Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.43 ▼0.898.21 ▲6.6036.41 ▼4.44
Dashboard /wp-admin2,229 ▲525.65 ▼0.0186.88 ▼4.5740.17 ▲2.14
Posts /wp-admin/edit.php2,131 ▲311.97 ▼0.0536.11 ▼0.0633.08 ▼2.56
Add New Post /wp-admin/post-new.php1,552 ▲2623.68 ▲0.19675.97 ▼14.7557.15 ▼5.78
Media Library /wp-admin/upload.php1,434 ▲374.17 ▲0.0096.43 ▼15.5842.99 ▼5.33
All Slider /wp-admin/edit.php?post_type=mislider1,1461.9734.1629.91
Add New /wp-admin/post-new.php?post_type=mislider2,5147.62188.8269.54
Mislider Settings /wp-admin/mioptions.php260.420.1012.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mislider/mislider.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/mislider/mioptions.php:31

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/mioptions.php
    • > Network (severe)
    wp-admin/mioptions.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === mislider === )
The official readme.txt is a good inspiration

mislider/mislider.php Passed 13 tests

"Multi Item Responsive Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Its jQuery slider specifically designed for displaying multiple images

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,122 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2184285763
PHP22622207
CSS101152

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png50.58KB29.87KB▼ 40.95%
screenshot-2.png32.45KB17.46KB▼ 46.21%