78% carousel-glider-js

Code Review | Carrossel with Glider.js

WordPress plugin Carrossel with Glider.js scored78%from 54 tests.

About plugin

  • Plugin page: carousel-glider-js
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2021
  • Latest release: Nov 12, 2022
  • Number of updates: 12
  • Update frequency: every 51.5 days
  • Top authors: jonathanafranio89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,440 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 gracefully, with no errors

Server metrics [RAM: ▼0.51MB] [CPU: ▼16.28ms] Passed 4 tests

Server-side resources used by Carrossel with Glider.js
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.31 ▲0.11
Dashboard /wp-admin3.47 ▲0.1750.39 ▼1.79
Posts /wp-admin/edit.php3.59 ▲0.2350.48 ▼0.01
Add New Post /wp-admin/post-new.php3.32 ▼2.5639.23 ▼63.41
Media Library /wp-admin/upload.php3.40 ▲0.1740.43 ▲2.84
Add New /wp-admin/post-new.php?post_type=carousel3.3136.88
Categories /wp-admin/edit-tags.php?taxonomy=categoria-carousel&post_type=carousel3.3933.59
Carousel /wp-admin/edit.php?post_type=carousel3.4439.70

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Carrossel with Glider.js
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10414.47 ▲0.062.24 ▲0.3943.56 ▲0.25
Dashboard /wp-admin2,250 ▲594.85 ▼0.97113.09 ▲8.0647.38 ▲4.32
Posts /wp-admin/edit.php2,136 ▲471.99 ▼0.0539.47 ▼3.5036.92 ▼0.36
Add New Post /wp-admin/post-new.php1,577 ▲4123.11 ▼0.29642.62 ▲33.3650.48 ▼5.09
Media Library /wp-admin/upload.php1,435 ▲474.20 ▼0.04108.62 ▲1.3248.95 ▲3.89
Add New /wp-admin/post-new.php?post_type=carousel1,57116.72797.0735.59
Categories /wp-admin/edit-tags.php?taxonomy=categoria-carousel&post_type=carousel1,3122.1431.2930.08
Carousel /wp-admin/edit.php?post_type=carousel1,1171.9533.4327.74

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 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=carousel
    • > Notice in wp-content/plugins/carousel-glider-js/includes/cgj_custom-post-carousel.php+103
    Undefined index: url_link
    • > GET request to /wp-admin/post-new.php?post_type=carousel
    • > Notice in wp-content/plugins/carousel-glider-js/includes/cgj_custom-post-carousel.php+104
    Undefined index: target_link
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=carousel
    • > Notice in wp-content/plugins/carousel-glider-js/includes/cgj_custom-post-carousel.php+106
    Trying to get property 'ID' of non-object

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-glider-js/includes/cgj-options.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-glider-js/includes/cgj_custom-post-carousel.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-glider-js/includes/cgj-options.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: slider, carousel

carousel-glider-js/carrossel-glider-js.php 85% from 13 tests

The entry point to "Carrossel with Glider.js" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("carousel-glider-js.php" instead of "carrossel-glider-js.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,331 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,453
PHP913530679
JavaScript611156545
Sass46332332
PO File282100190
CSS301132

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin