89% sp-clients-carousel

Code Review | SP Clients Carousel - Client Showcase Slider

WordPress plugin SP Clients Carousel - Client Showcase Slider scored 89% from 54 tests.

About plugin

  • Plugin page: sp-clients-carousel
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.8.1
  • First release: May 29, 2019
  • Latest release: May 29, 2019
  • Number of updates: 17
  • Update frequency: N/A
  • Top authors: itsmesulav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼141.90ms] Passed 4 tests

A check of server-side resources used by SP Clients Carousel - Client Showcase Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0329.18 ▼6.86
Dashboard /wp-admin3.09 ▲0.0442.79 ▲6.03
Posts /wp-admin/edit.php3.15 ▲0.0444.88 ▲1.22
Add New Post /wp-admin/post-new.php5.45 ▲0.0289.59 ▼566.96
Media Library /wp-admin/upload.php3.04 ▲0.0435.41 ▲5.01
Add New /wp-admin/post-new.php?post_type=spspsp_client3.1550.00
SP Carousel Docs /wp-admin/edit.php?post_type=spspsp_client&page=spspsp-desc3.0135.61
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=spspsp_client3.0335.89
SP Clients /wp-admin/edit.php?post_type=spspsp_client3.0925.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

SP Clients Carousel - Client Showcase Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,752 ▲15616.04 ▲0.0610.52 ▲2.0948.49 ▲0.11
Dashboard /wp-admin3,018 ▲875.89 ▼0.06132.63 ▼9.75108.93 ▼6.88
Posts /wp-admin/edit.php2,784 ▲452.72 ▲0.0063.33 ▼3.2388.23 ▼5.81
Add New Post /wp-admin/post-new.php2,090 ▲40719.43 ▲0.72378.65 ▲13.07109.49 ▼5.64
Media Library /wp-admin/upload.php1,793 ▼145.03 ▼0.02147.04 ▲1.98127.16 ▲5.49
Add New /wp-admin/post-new.php?post_type=spspsp_client3,0488.90212.05141.05
SP Carousel Docs /wp-admin/edit.php?post_type=spspsp_client&page=spspsp-desc1,1212.0855.5370.55
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=spspsp_client1,9552.3964.3687.51
SP Clients /wp-admin/edit.php?post_type=spspsp_client1,4962.6262.8778.95

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
  • The uninstall procedure has failed, leaving 1 option in the database
    • category_children

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: responsive slider, html slider, dynamic carousel, client showcase, slideshows...

sp-clients-carousel/sp-carousel-showcase.php 85% from 13 tests

Analyzing the main PHP file in "SP Clients Carousel - Client Showcase Slider" version 1.0.3
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sp-clients-carousel.php" instead of "sp-carousel-showcase.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 205 characters long)

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
No dangerous file extensions were detected402 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS43137253
PHP4517124
JavaScript21525

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.21
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 images were found in this plugin