94% 4-level-slider

Code Review | 4 Level Slider

WordPress plugin 4 Level Slider scored 94% from 54 tests.

About plugin

  • Plugin page: 4-level-slider
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.9.2
  • First release: Apr 18, 2020
  • Latest release: Apr 18, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ascdevbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 294 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by 4 Level Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0960.25 ▼58.36
Dashboard /wp-admin3.49 ▲0.0937.51 ▲4.19
Posts /wp-admin/edit.php3.72 ▲0.0862.17 ▲18.70
Add New Post /wp-admin/post-new.php6.94 ▼0.0393.75 ▼1,183.85
Media Library /wp-admin/upload.php3.35 ▲0.0524.33 ▼0.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 4 Level Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,156 ▲40317.97 ▲2.309.27 ▲3.612.66 ▲0.27
Dashboard /wp-admin3,137 ▲2778.40 ▲2.30140.08 ▲14.71158.22 ▼7.42
Posts /wp-admin/edit.php2,965 ▲2805.02 ▲1.7881.08 ▲6.07143.19 ▼5.57
Add New Post /wp-admin/post-new.php1,698 ▲3719.63 ▲3.14431.22 ▲20.87159.13 ▼23.78
Media Library /wp-admin/upload.php1,751 ▲505.71 ▲0.21139.65 ▲1.01204.98 ▼46.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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
Good news, no errors were detected

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/4-level-slider/four-level-slider.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/4-level-slider/inc/fls-frontend.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/4-level-slider/inc/fls-enqueue.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/4-level-slider/inc/fls-admin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slider, four images, responsive, free, full-width

4-level-slider/four-level-slider.php 92% from 13 tests

The main file in "4 Level Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("4-level-slider.php" instead of "four-level-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin664 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin