84% codelights-shortcodes-and-widgets

Code Review | Sidebar Widgets by CodeLights

WordPress plugin Sidebar Widgets by CodeLights scored 84% from 54 tests.

About plugin

  • Plugin page: codelights-shortc...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 5.9.2
  • First release: Nov 21, 2015
  • Latest release: Feb 10, 2019
  • Number of updates: 27
  • Update frequency: every 43.6 days
  • Top authors: rsukhar (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

50,000+ active / 442,391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.27MB] [CPU: ▼300.11ms] Passed 4 tests

A check of server-side resources used by Sidebar Widgets by CodeLights
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3359.45 ▲5.87
Dashboard /wp-admin3.66 ▲0.2644.48 ▲2.44
Posts /wp-admin/edit.php3.97 ▲0.3451.66 ▲14.64
Add New Post /wp-admin/post-new.php7.19 ▲0.23100.58 ▼1,197.67
Media Library /wp-admin/upload.php3.54 ▲0.2525.60 ▼11.09

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_cl-itext
widget_cl-review
widget_cl-counter
widget_cl-flipbox
widget_cl-popup
widget_cl-ib

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sidebar Widgets by CodeLights
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,776 ▲3214.72 ▼1.255.72 ▼0.152.10 ▼0.48
Dashboard /wp-admin2,885 ▲316.14 ▼0.02117.77 ▼14.98169.53 ▲0.60
Posts /wp-admin/edit.php3,195 ▲5107.19 ▲3.95142.12 ▲72.25149.56 ▼47.33
Add New Post /wp-admin/post-new.php1,699 ▲3816.38 ▼5.98435.48 ▼54.42200.48 ▲33.23
Media Library /wp-admin/upload.php1,701 ▲35.51 ▲0.05110.58 ▼25.39233.17 ▲42.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_cl-popup
    • widget_cl-ib
    • widget_cl-flipbox
    • widget_cl-review
    • widget_cl-itext
    • widget_cl-counter

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 27× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/functions/debug.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/eform/eform.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/ebuilder.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/elements/cl-review.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/elements/cl-itext.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/eform/select.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/functions/shortcodes.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/functions/helpers.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/eform/html.php
    • > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/elements/cl-flipbox.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • 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

codelights-shortcodes-and-widgets/codelights.php 92% from 13 tests

Analyzing the main PHP file in "Sidebar Widgets by CodeLights" version 1.4
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("codelights-shortcodes-and-widgets.php" instead of "codelights.php")

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
Success! There were no dangerous files found in this plugin15,017 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
CSS110134,741
SVG1002,671
LESS10193892,591
PHP272395362,350
JavaScript121385301,899
PO File2368459765

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/cl-ib.png5.07KB2.97KB▼ 41.37%
admin/img/cl-popup.png5.03KB3.06KB▼ 39.06%
admin/img/cl-itext.png5.14KB3.24KB▼ 36.89%
admin/img/cl-flipbox.png5.43KB3.10KB▼ 42.99%
admin/img/cl-review.png5.31KB3.13KB▼ 41.11%