78% awesome-slider-lite

Code Review | Awesome Slider Lite

WordPress plugin Awesome Slider Lite scored78%from 54 tests.

About plugin

  • Plugin page: awesome-slider-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: Aug 7, 2014
  • Latest release: Aug 7, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Webzotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,891 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.11MB] [CPU: ▲8.80ms] Passed 4 tests

A check of server-side resources used by Awesome Slider Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1146.41 ▲6.90
Dashboard /wp-admin3.43 ▲0.1359.95 ▲10.16
Posts /wp-admin/edit.php3.52 ▲0.1659.40 ▲12.48
Add New Post /wp-admin/post-new.php6.00 ▲0.1297.89 ▲7.41
Media Library /wp-admin/upload.php3.33 ▲0.1042.06 ▲10.73

Server storage [IO: ▲3.46MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 192 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Slider Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,169 ▲43417.14 ▲2.5514.27 ▲12.5475.12 ▲26.20
Dashboard /wp-admin2,418 ▲2306.82 ▲1.91134.12 ▲31.2339.85 ▲1.47
Posts /wp-admin/edit.php2,336 ▲2504.27 ▲2.2659.51 ▲23.9933.92 ▲0.21
Add New Post /wp-admin/post-new.php1,587 ▲5324.13 ▲0.91592.05 ▼73.2633.53 ▼19.57
Media Library /wp-admin/upload.php1,476 ▲885.47 ▲1.2493.95 ▼9.7442.20 ▼4.64

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/awesome-slider-lite/views/awslider.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-slideform.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-addslide.php
    • > /wp-content/plugins/awesome-slider-lite/admin-views/slide-playground.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-addslider.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-updateslide.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-savesliderdata.php
    • > /wp-content/plugins/awesome-slider-lite/includes/fetch-sliders.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-updateslider.php
    • > /wp-content/plugins/awesome-slider-lite/includes/ajax-sliderform.php
  • 58× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: aw_easings in wp-content/plugins/awesome-slider-lite/admin-views/slide-playground.php on line 188
    • > PHP Notice
      Undefined variable: act in wp-content/plugins/awesome-slider-lite/admin-views/sliders.php on line 9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/awesome-slider-lite/admin-views/slide-playground.php on line 123
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/awesome-slider-lite/admin-views/slide-playground.php on line 590
    • > PHP Warning
      include(AW_ROOTawvars.php): failed to open stream: No such file or directory in wp-content/plugins/awesome-slider-lite/admin-views/slides.php on line 9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/awesome-slider-lite/admin-views/slide-playground.php on line 95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aw_parse_css() in wp-content/plugins/awesome-slider-lite/includes/ajax-updateawcss.php:4
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/awesome-slider-lite/includes/fetch-sliders.php on line 26
    • > PHP Notice
      Undefined variable: aw_easings in wp-content/plugins/awesome-slider-lite/admin-views/slide-playground.php on line 123
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/awesome-slider-lite/admin-views/slider-settings.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

awesome-slider-lite/functions.php 92% from 13 tests

The main file in "Awesome Slider Lite" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-slider-lite.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,569 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
CSS5154832,327
PHP24113301,517
SVG3001,147
JavaScript13868216578

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
5 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/draggerbg.png0.94KB0.11KB▼ 88.67%
images/bgarrow.png1.00KB0.16KB▼ 83.56%
images/bgscale.png1.00KB0.12KB▼ 88.53%
images/aw_sprite.png13.71KB5.06KB▼ 63.08%
screenshot-1.png119.94KB131.41KB0.00%