68% lazy-content-slider

Code Review | Lazy content Slider

WordPress plugin Lazy content Slider scored68%from 54 tests.

About plugin

  • Plugin page: lazy-content-slider
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.5.1
  • WordPress version: 6.3.1
  • First release: May 30, 2012
  • Latest release: Feb 26, 2013
  • Number of updates: 36
  • Update frequency: every 7.6 days
  • Top authors: leethompson (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /7,999 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼30.65ms] Passed 4 tests

Analyzing server-side resources used by Lazy content Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.77 ▼0.76
Dashboard /wp-admin3.01 ▼0.2923.20 ▼25.41
Posts /wp-admin/edit.php3.02 ▼0.3423.35 ▼21.19
Add New Post /wp-admin/post-new.php3.01 ▼2.8722.05 ▼70.01
Media Library /wp-admin/upload.php3.01 ▼0.2124.15 ▼5.99
Lazy Content Slider /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php3.0221.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
lzcs_cat
widget_recent-comments
lzcs_count
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy content Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17014.30 ▼0.0521.05 ▲19.5042.49 ▲1.62
Dashboard /wp-admin2,199 ▲185.63 ▼0.0191.55 ▼12.0941.65 ▼0.45
Posts /wp-admin/edit.php2,104 ▲42.15 ▲0.1539.59 ▲4.0836.25 ▼1.39
Add New Post /wp-admin/post-new.php1,539 ▲418.06 ▼0.03600.22 ▼42.2966.79 ▼0.48
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.0398.22 ▼0.4641.06 ▼1.94
Lazy Content Slider /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php9202.0125.0927.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php
    • > Notice in wp-content/plugins/lazy-content-slider/lzcs_admin.php+38
    Undefined variable: PHP_SELF
    • > GET request to /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php
    • > Notice in wp-content/plugins/lazy-content-slider/lzcs_admin.php+52
    Undefined variable: selected

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lazy-content-slider/lzcs_admin.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lazy-content-slider/lzcs.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: slider, rotator, featured, content

lazy-content-slider/lzcs.php 92% from 13 tests

The principal PHP file in "Lazy content Slider" v. 3.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lazy-content-slider.php" instead of "lzcs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected438 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23635196
CSS230169
JavaScript211473

PHP code Passed 2 tests

This is a very shot review 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.18
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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/transparent-bg.png0.11KB0.09KB▼ 15.65%