79% tiny-carousel-horizontal-slider

Code Review | Tiny Carousel Horizontal Slider

WordPress plugin Tiny Carousel Horizontal Slider scored79%from 54 tests.

About plugin

  • Plugin page: tiny-carousel-hor...
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1
  • WordPress version: 6.3.1
  • First release: May 28, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 52
  • Update frequency: every 73.8 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /70,210 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.01MB] [CPU: ▼3.49ms] Passed 4 tests

A check of server-side resources used by Tiny Carousel Horizontal Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.47 ▼7.49
Dashboard /wp-admin3.31 ▲0.0144.01 ▼3.61
Posts /wp-admin/edit.php3.36 ▲0.0147.65 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.63 ▼2.06
Media Library /wp-admin/upload.php3.24 ▲0.0135.07 ▲1.27
Tiny carousel /wp-admin/options-general.php?page=tiny-carousel-horizontal-slider3.2732.44

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables
wp_tinycarousel
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Tiny Carousel Horizontal Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.49 ▼0.897.80 ▲6.0142.31 ▼0.70
Dashboard /wp-admin2,210 ▲224.86 ▼1.02109.15 ▼1.0439.41 ▼2.95
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0140.63 ▼2.0533.86 ▼4.44
Add New Post /wp-admin/post-new.php1,528 ▲1423.10 ▲5.60642.50 ▼47.5954.95 ▲0.50
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.0693.60 ▼20.5741.98 ▼6.66
Tiny carousel /wp-admin/options-general.php?page=tiny-carousel-horizontal-slider9192.0624.7725.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tiny-carousel-horizontal-slider/pages/image-management-add.php
    • > /wp-content/plugins/tiny-carousel-horizontal-slider/pages/image-management-edit.php
    • > /wp-content/plugins/tiny-carousel-horizontal-slider/pages/image-management-show.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tiny-carousel-horizontal-slider/tiny-carousel-horizontal-slider.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/tiny-carousel-horizontal-slider/tiny-carousel-horizontal-slider.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: horizontal, slider, carousel, tiny

tiny-carousel-horizontal-slider/tiny-carousel-horizontal-slider.php Passed 13 tests

The main PHP script in "Tiny Carousel Horizontal Slider" version 8.1 is automatically included on every request by WordPress
123 characters long description:
This is Jquery based image horizontal slider plugin, it is using tiny carousel light weight jquery script to the slideshow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,345 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP59341735
PO File3157256383
JavaScript2390227

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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