78% simple-al-slider

Code Review | Simple AL Slider

WordPress plugin Simple AL Slider scored78%from 54 tests.

About plugin

  • Plugin page: simple-al-slider
  • Plugin version: 1.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: Nov 4, 2015
  • Number of updates: 31
  • Update frequency: every 8.7 days
  • Top authors: alexdtn (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /7,674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.37MB] [CPU: ▲0.95ms] Passed 4 tests

Analyzing server-side resources used by Simple AL Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.54 ▲1.51
Dashboard /wp-admin3.80 ▲0.5051.89 ▲1.93
Posts /wp-admin/edit.php3.85 ▲0.5056.01 ▲4.67
Add New Post /wp-admin/post-new.php6.32 ▲0.4492.73 ▼4.33
Media Library /wp-admin/upload.php3.66 ▲0.4444.64 ▲5.49
Simple Slider Info /wp-admin/admin.php?page=simpleal_slider_show_info3.6842.24
Other Products /wp-admin/admin.php?page=simpleal_slider_show_products3.6741.36
Simple AL Slider Setup /wp-admin/admin.php?page=simpleal_slider_show3.7746.36
Simple AL Slider /wp-admin/admin.php?page=simpleal_show_about3.6841.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 179 new files
Database: 4 new tables, 9 new options
New tables
wp_simpleal_slider
wp_simpleal_images
wp_simpleal_slides
wp_simpleal_texts
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_simple_al_slider_widget
simple_al_current_language
widget_theysaidso_widget
simple_al_slider_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Simple AL Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.27 ▼0.782.03 ▲0.1039.97 ▼17.16
Dashboard /wp-admin2,228 ▲405.84 ▲0.75106.99 ▼12.2266.00 ▲23.53
Posts /wp-admin/edit.php2,129 ▲431.98 ▼0.0537.74 ▼3.5133.85 ▼2.00
Add New Post /wp-admin/post-new.php1,542 ▲917.65 ▼5.67731.19 ▲55.1757.75 ▼4.12
Media Library /wp-admin/upload.php1,425 ▲374.17 ▼0.04101.60 ▼16.7183.05 ▲32.40
Simple Slider Info /wp-admin/admin.php?page=simpleal_slider_show_info1,3253.3752.4696.81
Other Products /wp-admin/admin.php?page=simpleal_slider_show_products1,0573.2852.4066.16
Simple AL Slider Setup /wp-admin/admin.php?page=simpleal_slider_show1,1683.3742.7470.67
Simple AL Slider /wp-admin/admin.php?page=simpleal_show_about1,1493.2745.3978.99

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_simple_al_slider_widget
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
  • 28× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/simple-al-slider/cfg/cfg.php
    • > /wp-content/plugins/simple-al-slider/simple-al-slider.php
    • > /wp-content/plugins/simple-al-slider/admin_simple_al_slider.php
    • > /wp-content/plugins/simple-al-slider/inc/admincommon.class.php
    • > /wp-content/plugins/simple-al-slider/users_simple_al_slider.php
    • > /wp-content/plugins/simple-al-slider/inc/cachedb.class.php
    • > /wp-content/plugins/simple-al-slider/inc/inclusion.php
    • > /wp-content/plugins/simple-al-slider/admin_classes/models/bg_images.php
    • > /wp-content/plugins/simple-al-slider/inc/db.class.php
    • > /wp-content/plugins/simple-al-slider/admin_classes/controllers/main_info.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=simpleal_show_about
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: $(...).accordion is not a function" "TypeError: $(...).accordion is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=simpleal_show_about:174:23)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=simpleal_show_about
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught TypeError: $(...).accordion is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Too many tags (145 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

simple-al-slider/simple-al-slider.php Passed 13 tests

The entry point to "Simple AL Slider" version 1.2.10 is a PHP file that has certain tags in its header comment area
121 characters long description:
Simple slider with background and elements. And capability to add images, buttons, html templates and videos(youtube...).

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
Everything looks great! No dangerous files found in this plugin3,000 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP30459972,137
CSS65363754
JavaScript63218109

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.36
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods139
▷ Static methods96.47%
▷ Public methods139100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
82 PNG files occupy 0.54MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow_left_03.png3.14KB1.90KB▼ 39.62%
templates/front_masks/car2.png4.84KB4.10KB▼ 15.36%
css/images/ui-bg_fine-grain_15_f7f3de_60x60.png10.64KB1.70KB▼ 83.98%
templates/front_masks/cat1.png14.30KB13.55KB▼ 5.26%
templates/front_masks/trees1.png10.80KB9.23KB▼ 14.53%