84% microslider

Code Review | microSlider

WordPress plugin microSlider scored84%from 54 tests.

About plugin

  • Plugin page: microslider
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0.0
  • WordPress version: 6.3.1
  • First release: May 5, 2020
  • Latest release: Jun 11, 2022
  • Number of updates: 9
  • Update frequency: every 85.2 days
  • Top authors: JohnnyNT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.86ms] Passed 4 tests

Server-side resources used by microSlider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.91 ▲2.66
Dashboard /wp-admin3.32 ▲0.0253.03 ▼3.34
Posts /wp-admin/edit.php3.37 ▲0.0150.00 ▲3.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.67 ▼9.01
Media Library /wp-admin/upload.php3.24 ▲0.0137.82 ▲2.24
microSlider /wp-admin/options-general.php?page=microslider3.3137.95

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
microslider_slide_1
widget_theysaidso_widget
microslider_ids
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for microSlider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15613.54 ▼0.8110.00 ▲8.0342.99 ▼4.16
Dashboard /wp-admin2,200 ▲235.69 ▲0.1187.68 ▼3.6841.31 ▼1.65
Posts /wp-admin/edit.php2,108 ▲82.01 ▼0.0236.61 ▼1.1234.33 ▲0.16
Add New Post /wp-admin/post-new.php1,533 ▲523.01 ▲0.01656.87 ▲30.0867.26 ▲11.16
Media Library /wp-admin/upload.php1,411 ▲114.14 ▼0.0499.67 ▼9.1543.11 ▼1.31
microSlider /wp-admin/options-general.php?page=microslider1,2813.0343.7059.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • microslider_ids
    • widget_recent-posts
    • theysaidso_admin_options
    • microslider_slide_1
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/microslider/admin/partials/microslider-admin-display.php

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: carousel, slider, image slider

microslider/microslider.php 92% from 13 tests

The main PHP script in "microSlider" version 1.0.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 251 characters long)

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
No dangerous file extensions were detected1,192 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP11235105529
JavaScript5101107402
CSS65718261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.29
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2472.73%
▷ Protected methods00.00%
▷ Private methods927.27%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/images/controls.png2.74KB1.42KB▼ 48.29%
admin/images/close.png1.20KB1.34KB0.00%