89% wp-logo-showcase-responsive-slider-slider

Code Review | WP Logo Showcase Responsive Slider and Carousel

WordPress plugin WP Logo Showcase Responsive Slider and Carousel scored89%from 54 tests.

About plugin

  • Plugin page: wp-logo-showcase-...
  • Plugin version: 3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 203
  • Update frequency: every 14.5 days
  • Top authors: anoopranawat (56.16%)wponlinesupport (44.33%)

Code review

54 tests

User reviews

100 reviews

Install metrics

50,000+ active /1,214,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼3.14ms] Passed 4 tests

Analyzing server-side resources used by WP Logo Showcase Responsive Slider and Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3438.22 ▼1.95
Dashboard /wp-admin3.63 ▲0.2950.22 ▼14.29
Posts /wp-admin/edit.php3.75 ▲0.3963.37 ▲10.76
Add New Post /wp-admin/post-new.php6.24 ▲0.3696.29 ▼1.18
Media Library /wp-admin/upload.php3.55 ▲0.3240.32 ▲4.88

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 8 new options
New WordPress options
wpos_anylc_redirect
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
wpos_anylc_site_uid
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Logo Showcase Responsive Slider and Carousel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,546 ▼1,20110.21 ▼4.191.30 ▼0.4418.39 ▼26.23
Dashboard /wp-admin2,218 ▲415.55 ▼0.0498.12 ▼5.4155.46 ▲8.85
Posts /wp-admin/edit.php2,125 ▲221.99 ▼0.0140.14 ▼0.9236.55 ▲1.66
Add New Post /wp-admin/post-new.php6,218 ▲4,69219.02 ▼4.07893.05 ▲287.1350.34 ▼15.20
Media Library /wp-admin/upload.php1,416 ▲194.20 ▼0.0799.05 ▲0.9541.53 ▲0.81

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
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • wpos_anylc_site_uid
    • widget_recent-comments
    • wpos_anylc_redirect
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-logo-showcase-responsive-slider-slider/logo-showcase.php 92% from 13 tests

The main PHP script in "WP Logo Showcase Responsive Slider and Carousel" version 3.7 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-logo-showcase-responsive-slider-slider.php" instead of "logo-showcase.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 plugin3,352 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP265748002,856
JavaScript69545311
CSS52413184
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity27.40
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods35
▷ Static methods12.86%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.58MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/popup-icon/grid.png4.67KB2.53KB▼ 45.73%
assets/images/image-upgrade.png166.27KB48.08KB▼ 71.08%
assets/images/popup-icon/slider-carousel.png5.07KB2.69KB▼ 46.98%
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
assets/images/easy-to-represent.png21.17KB9.21KB▼ 56.48%