84% carousel-3d-slider

Code Review | Carousel 3D Slider

WordPress plugin Carousel 3D Slider scored84%from 54 tests.

About plugin

  • Plugin page: carousel-3d-slider
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 10
  • Update frequency: every 113.5 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,442 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.84ms] Passed 4 tests

This is a short check of server-side resources used by Carousel 3D Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.83 ▲0.02
Dashboard /wp-admin3.38 ▲0.0846.16 ▼1.82
Posts /wp-admin/edit.php3.43 ▲0.0749.50 ▲0.55
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.61 ▼1.98
Media Library /wp-admin/upload.php3.30 ▲0.0733.82 ▲0.42

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Carousel 3D Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.76 ▼0.741.66 ▼0.5444.25 ▼1.11
Dashboard /wp-admin2,220 ▲354.89 ▼0.02108.18 ▲1.6742.76 ▼1.94
Posts /wp-admin/edit.php2,120 ▲312.27 ▲0.2640.34 ▲2.9134.51 ▲1.37
Add New Post /wp-admin/post-new.php1,535 ▲223.40 ▲0.01666.41 ▼22.7553.60 ▼1.75
Media Library /wp-admin/upload.php1,415 ▲274.21 ▼0.0299.51 ▼17.0243.57 ▼4.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× 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-3d-slider/carousel-3d-slider.php:338

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: jquery 3d slider, 3d rotate images, 3d slider, responsive 3d slider, 3d carousel sider...

carousel-3d-slider/carousel-3d-slider.php 92% from 13 tests

Analyzing the main PHP file in "Carousel 3D Slider" version 1.0.1
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,531 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54366551,195
PHP18260196
CSS12615140

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/prev.png1.62KB0.90KB▼ 44.54%
img/next.png1.65KB0.90KB▼ 45.35%