90% crelly-slider

Code Review | Crelly Slider

WordPress plugin Crelly Slider scored90%from 54 tests.

About plugin

  • Plugin page: crelly-slider
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Sep 13, 2021
  • Number of updates: 177
  • Update frequency: every 14.7 days
  • Top authors: fabiorino (100%)

Code review

54 tests

User reviews

110 reviews

Install metrics

10,000+ active /321,565 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.26MB] [CPU: ▼0.36ms] Passed 4 tests

A check of server-side resources used by Crelly Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.20 ▼0.90
Dashboard /wp-admin3.68 ▲0.3756.19 ▲2.92
Posts /wp-admin/edit.php3.74 ▲0.3862.32 ▲10.19
Add New Post /wp-admin/post-new.php6.19 ▲0.2987.59 ▼5.38
Media Library /wp-admin/upload.php3.53 ▲0.3040.85 ▲1.90

Server storage [IO: ▲0.50MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: 4 new tables, 7 new options
New tables
wp_crellyslider_slides
wp_crellyslider_nonces
wp_crellyslider_sliders
wp_crellyslider_elements
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
cs_version
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Crelly Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,129 ▲36817.12 ▲2.836.25 ▲4.3337.54 ▼2.92
Dashboard /wp-admin2,452 ▲2727.46 ▲1.83159.12 ▲64.0245.03 ▲4.78
Posts /wp-admin/edit.php2,379 ▲2764.97 ▲2.9464.70 ▲22.1230.22 ▼3.59
Add New Post /wp-admin/post-new.php6,265 ▲4,73919.46 ▼3.89887.81 ▲183.9738.14 ▼16.51
Media Library /wp-admin/upload.php1,522 ▲1226.30 ▲2.05107.71 ▼11.5643.22 ▼4.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: images, slider, texts, videos, layers...

crelly-slider/crellyslider.php 92% from 13 tests

This is the main PHP file of "Crelly Slider" version 1.4.5, 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("crelly-slider.php" instead of "crellyslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,824 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP123571313,313
JavaScript56664233,219
CSS4199341,292

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods38100.00%
▷ Public methods3797.37%
▷ Protected methods00.00%
▷ Private methods12.63%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
8 PNG files occupy 0.10MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-left.png14.74KB0.26KB▼ 98.21%
wordpress/images/logo2.png12.31KB5.24KB▼ 57.46%
wordpress/images/edit.png14.41KB0.46KB▼ 96.81%
wordpress/images/plus.png14.59KB0.49KB▼ 96.67%
wordpress/images/settings.png14.79KB0.40KB▼ 97.27%