84% cinza-slider

Code Review | Cinza Slider

WordPress plugin Cinza Slider scored84%from 54 tests.

About plugin

  • Plugin page: cinza-slider
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Dec 22, 2021
  • Latest release: Aug 1, 2023
  • Number of updates: 29
  • Update frequency: every 20.4 days
  • Top authors: madebycinza (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.29ms] Passed 4 tests

An overview of server-side resources used by Cinza Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2346.81 ▲0.53
Dashboard /wp-admin3.53 ▲0.1849.50 ▼15.96
Posts /wp-admin/edit.php3.65 ▲0.2955.39 ▼1.12
Add New Post /wp-admin/post-new.php6.19 ▲0.3089.61 ▼0.61
Media Library /wp-admin/upload.php3.45 ▲0.2237.39 ▲2.98
All Sliders /wp-admin/edit.php?post_type=cinza_slider3.5343.89
Add New /wp-admin/post-new.php?post_type=cinza_slider3.5149.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Cinza Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.52 ▼0.122.11 ▲0.0540.79 ▼2.13
Dashboard /wp-admin2,224 ▲595.63 ▼0.0185.78 ▼14.1640.43 ▼3.82
Posts /wp-admin/edit.php2,129 ▲292.00 ▲0.0539.68 ▼1.8439.73 ▲0.68
Add New Post /wp-admin/post-new.php1,551 ▲2021.02 ▼2.06637.01 ▼37.1457.74 ▼5.68
Media Library /wp-admin/upload.php1,429 ▲294.24 ▼0.0799.50 ▼14.3244.05 ▼3.88
All Sliders /wp-admin/edit.php?post_type=cinza_slider1,2683.3745.1328.76
Add New /wp-admin/post-new.php?post_type=cinza_slider2,8193.7267.7090.44

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cinza-slider/includes/backend-cpts.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cinza-slider/includes/backend-shortcodes.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slideshow, metafizzy, slider, flickity, carousel

cinza-slider/cinza-slider.php Passed 13 tests

Analyzing the main PHP file in "Cinza Slider" version 1.2.5
24 characters long description:
A minimal slider plugin.

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
There were no executable files found in this plugin2,096 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP31491061,127
CSS712025574
JavaScript583125379
SVG10016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions22
▷ Named functions2090.91%
▷ Anonymous functions29.09%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/razorfrog-icon-turquoise.png40.34KB15.75KB▼ 60.95%
assets/images/cinza-icon-pink.png13.98KB6.67KB▼ 52.29%
assets/images/metafizzy-icon.png37.06KB13.97KB▼ 62.31%
assets/images/icon-move.png7.33KB3.89KB▼ 46.98%
assets/images/icon-delete.png4.73KB2.48KB▼ 47.70%