78% simple-flexi-slider-by-lms-it

Code Review | Simple Flexi Slider By Lms-IT

WordPress plugin Simple Flexi Slider By Lms-IT scored78%from 54 tests.

About plugin

  • Plugin page: simple-flexi-slid...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Feb 22, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: lms-it (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,503 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
Installer ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼23.71ms] Passed 4 tests

Analyzing server-side resources used by Simple Flexi Slider By Lms-IT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.21 ▼6.31
Dashboard /wp-admin3.33 ▼0.0150.80 ▼13.49
Posts /wp-admin/edit.php3.38 ▲0.0345.31 ▼5.64
Add New Post /wp-admin/post-new.php3.12 ▼2.7737.36 ▼69.38
Media Library /wp-admin/upload.php3.26 ▲0.0335.31 ▼0.19
Add New /wp-admin/post-new.php?post_type=sfs_js_slider3.1229.28
Flexi Sliders /wp-admin/edit.php?post_type=sfs_js_slider3.3041.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Flexi Slider By Lms-IT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲20213.45 ▲0.239.90 ▲5.4542.25 ▼2.46
Dashboard /wp-admin2,235 ▲585.51 ▼0.1495.57 ▼0.6743.25 ▼0.15
Posts /wp-admin/edit.php2,140 ▲402.00 ▼0.0136.26 ▼0.6534.72 ▼4.26
Add New Post /wp-admin/post-new.php1,567 ▲4123.50 ▲0.39596.00 ▼82.5467.53 ▲4.29
Media Library /wp-admin/upload.php1,446 ▲464.29 ▲0.1597.23 ▼12.0544.49 ▼3.99
Add New /wp-admin/post-new.php?post_type=sfs_js_slider2,2907.58165.3964.18
Flexi Sliders /wp-admin/edit.php?post_type=sfs_js_slider1,1211.9730.4230.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=sfs_js_slider
    • > Notice in wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php+225
    Undefined index: sfs_slider_box_nonce
    • > GET request to /wp-admin/post-new.php?post_type=sfs_js_slider
    • > Notice in wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php+193
    Undefined offset: 0
    • > GET request to /wp-admin/post-new.php?post_type=sfs_js_slider
    • > Notice in wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php+197
    Undefined offset: 1
    • > GET request to /wp-admin/post-new.php?post_type=sfs_js_slider
    • > Notice in wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php+201
    Undefined offset: 2
    • > GET request to /wp-admin/post-new.php?post_type=sfs_js_slider
    • > Notice in wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php+205
    Undefined offset: 3
    • > GET request to /wp-admin/post-new.php?post_type=sfs_js_slider
    • > Notice in wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php+209
    Undefined offset: 4

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
3 plugin tags: responsive, slider, simple

simple-flexi-slider-by-lms-it/Simple_Flexi_Slider_By_Lms-IT.php 92% from 13 tests

The main file in "Simple Flexi Slider By Lms-IT" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-flexi-slider-by-lms-it.php" instead of "Simple_Flexi_Slider_By_Lms-IT.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected305 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17838185
CSS22750109
JavaScript20411

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bg_direction_nav.png1.82KB0.79KB▼ 56.38%