78% vertical-carousel-slider

Code Review | Vertical Carousel

WordPress plugin Vertical Carousel scored78%from 54 tests.

About plugin

  • Plugin page: vertical-carousel...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Jul 25, 2022
  • Number of updates: 33
  • Update frequency: every 77.0 days
  • Top authors: amu02aftab (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.38ms] Passed 4 tests

A check of server-side resources used by Vertical Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.68 ▼2.25
Dashboard /wp-admin3.35 ▲0.0449.25 ▼0.88
Posts /wp-admin/edit.php3.40 ▲0.0450.49 ▼1.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.63 ▼8.49
Media Library /wp-admin/upload.php3.27 ▲0.0439.24 ▲6.66
Vertical Carousel /wp-admin/edit.php?post_type=vertical-carousel3.2735.15
Add New Image /wp-admin/post-new.php?post_type=vertical-carousel3.3359.64

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Vertical Carousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.37 ▲0.021.68 ▲0.0143.85 ▼2.36
Dashboard /wp-admin2,225 ▲485.52 ▼0.1482.97 ▼16.6142.30 ▼2.70
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0139.16 ▲4.5335.18 ▲0.89
Add New Post /wp-admin/post-new.php1,561 ▲3317.99 ▼5.22638.53 ▼45.8367.99 ▲13.73
Media Library /wp-admin/upload.php1,430 ▲304.19 ▼0.0494.77 ▼5.6643.68 ▼1.21
Vertical Carousel /wp-admin/edit.php?post_type=vertical-carousel1,0941.9729.9528.65
Add New Image /wp-admin/post-new.php?post_type=vertical-carousel1,6833.5959.4833.06

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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=vertical-carousel
    • > Notice in wp-content/plugins/vertical-carousel-slider/wp-vertical-carousel-slider.php+54
    Trying to get property 'post_type' 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-carousel-slider/wp-vertical-carousel-slider.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Back end add carousel image(go to wp-admin->Vertical Carousel->Add New Image.)), #2 (Back end vertical carousel image listing page(go to wp-admin->Vertical Carousel)), #3 (Front end look of vertical carousel slider.)
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

vertical-carousel-slider/wp-vertical-carousel-slider.php 92% from 13 tests

The main PHP script in "Vertical Carousel" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vertical-carousel-slider.php" instead of "wp-vertical-carousel-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14028147
CSS122361
JavaScript11146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.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
5 PNG files occupy 0.40MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png175.55KB39.99KB▼ 77.22%
screenshot-1.png28.29KB16.83KB▼ 40.52%
img/next.png3.23KB0.42KB▼ 87.06%
img/prev.png3.22KB0.41KB▼ 87.13%
screenshot-2.png194.52KB50.35KB▼ 74.12%