89% meta-slider-and-carousel-with-lightbox

Code Review | Meta Slider and Carousel with Lightbox

WordPress plugin Meta Slider and Carousel with Lightbox scored89%from 54 tests.

About plugin

  • Plugin page: meta-slider-and-c...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 80
  • Update frequency: every 33.6 days
  • Top authors: wponlinesupport (53.75%)anoopranawat (47.5%)

Code review

54 tests

User reviews

17 reviews

Install metrics

6,000+ active /175,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Meta Slider and Carousel with Lightbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3744.33 ▲3.66
Dashboard /wp-admin3.66 ▲0.3647.49 ▲1.06
Posts /wp-admin/edit.php3.80 ▲0.4454.04 ▲5.66
Add New Post /wp-admin/post-new.php6.29 ▲0.40102.06 ▲6.55
Media Library /wp-admin/upload.php3.59 ▲0.3635.04 ▲0.25

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
wpos_anylc_redirect
widget_recent-comments
wpos_anylc_site_uid

Browser metrics Passed 4 tests

A check of browser resources used by Meta Slider and Carousel with Lightbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,548 ▼1,21412.82 ▼1.581.31 ▼0.4816.46 ▼28.63
Dashboard /wp-admin2,224 ▲445.62 ▼0.03105.93 ▲4.3853.66 ▲10.24
Posts /wp-admin/edit.php2,317 ▲2143.67 ▲1.7172.35 ▲30.8376.37 ▲42.72
Add New Post /wp-admin/post-new.php6,321 ▲4,79526.21 ▲2.94906.10 ▲267.7937.68 ▼13.67
Media Library /wp-admin/upload.php1,422 ▲194.14 ▲0.0182.19 ▼16.7936.76 ▼9.59

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 were found after uninstall: 8 options
    • widget_theysaidso_widget
    • wpos_anylc_site_uid
    • wpos_anylc_redirect
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: gallery slider, gallery, frontend gallery slider, meta gallery slider, image carousel...

meta-slider-and-carousel-with-lightbox/frontend-gallery-slider.php 85% from 13 tests

Analyzing the main PHP file in "Meta Slider and Carousel with Lightbox" version 2.0
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("meta-slider-and-carousel-with-lightbox.php" instead of "frontend-gallery-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,842 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP286768282,761
CSS66617554
JavaScript715090526
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity32.20
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods39
▷ Static methods12.56%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
17 PNG files occupy 0.47MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/page-builder-icon.png40.77KB11.61KB▼ 71.53%
assets/images/popup-icon/slider.png5.26KB2.46KB▼ 53.19%
assets/images/arrow-right.png2.91KB0.18KB▼ 93.93%
assets/images/popup-icon/slider-carousel.png5.07KB2.69KB▼ 46.98%
assets/images/arrow-left.png2.94KB0.17KB▼ 94.18%