84% tailored-swiper-carousel

Code Review | Tailored Swiper Carousel

WordPress plugin Tailored Swiper Carousel scored84%from 54 tests.

About plugin

  • Plugin page: tailored-swiper-c...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Apr 21, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ajferg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.30ms] Passed 4 tests

A check of server-side resources used by Tailored Swiper Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.83 ▼2.04
Dashboard /wp-admin3.31 ▲0.0145.03 ▼4.03
Posts /wp-admin/edit.php3.36 ▲0.0148.07 ▲0.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.57 ▲0.25
Media Library /wp-admin/upload.php3.24 ▲0.0135.58 ▲3.01

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Tailored Swiper Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼1.331.69 ▼0.1140.28 ▼6.43
Dashboard /wp-admin2,213 ▲254.85 ▼0.05112.10 ▲7.1040.70 ▼6.56
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0540.74 ▲1.3536.63 ▲4.01
Add New Post /wp-admin/post-new.php1,551 ▲3118.42 ▼4.65613.05 ▼55.9366.77 ▲1.06
Media Library /wp-admin/upload.php1,395 ▲74.32 ▲0.0697.07 ▼8.1742.12 ▼4.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tailored-swiper-carousel/index.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tailored-swiper-carousel/blocks/banner-carousel/carousel.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gutenberg, carousel, hero, banner

tailored-swiper-carousel/index.php 85% from 13 tests

This is the main PHP file of "Tailored Swiper Carousel" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tailored-swiper-carousel.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected397 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON200175
PHP23084130
JavaScript272148
CSS271442
Markdown1202

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected