10% jcarousel-post-slider

Code Review | Jcarousel Post Slider

WordPress plugin Jcarousel Post Slider scored10%from 54 tests.

About plugin

  • Plugin page: jcarousel-post-sl...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: Aug 31, 2013
  • Number of updates: 7
  • Update frequency: every 32.1 days
  • Top authors: saokim (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /21,273 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/jcarousel-post-slider/jcarousel-post-slider.php+315
    Declaration of CSNV_Walker_Category_Checklist::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array)

Server metrics [RAM: ▼1.97MB] [CPU: ▼59.47ms] Passed 4 tests

A check of server-side resources used by Jcarousel Post Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.35 ▼39.92
Dashboard /wp-admin2.05 ▼1.306.49 ▼59.77
Posts /wp-admin/edit.php2.05 ▼1.316.18 ▼44.86
Add New Post /wp-admin/post-new.php2.05 ▼3.845.60 ▼93.31
Media Library /wp-admin/upload.php2.05 ▼1.185.16 ▼28.30

Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_slider_post
widget_theysaidso_widget

Browser metrics Passed 4 tests

Jcarousel Post Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.85 ▼0.688.59 ▲7.0744.33 ▲1.03
Dashboard /wp-admin2,200 ▲265.62 ▲0.0887.91 ▼3.8538.67 ▲0.08
Posts /wp-admin/edit.php2,102 ▲52.00 ▼0.0340.11 ▼0.6735.38 ▼0.60
Add New Post /wp-admin/post-new.php1,528 ▲223.69 ▲0.57678.38 ▼0.1561.85 ▲8.45
Media Library /wp-admin/upload.php1,399 ▼14.22 ▲0.0598.20 ▼0.6743.36 ▼5.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/jcarousel-post-slider/jcarousel-post-slider.php+315
    Declaration of CSNV_Walker_Category_Checklist::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array)
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_slider_post
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/jcarousel-post-slider/jcarousel-post-slider.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Demo horizontal slider), #2 (Widget configuration)
The official readme.txt might help

jcarousel-post-slider/jcarousel-post-slider.php Passed 13 tests

The main PHP file in "Jcarousel Post Slider" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Show post from checked categories as slider using jquery jcarousel

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,299 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1168223666
CSS38830444
PHP145171189

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.50
▷ Minimum class complexity3.00
▷ Maximum class complexity28.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
10 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/skins/saokim/prev.png4.58KB1.60KB▼ 65.12%
js/skins/tango/prev-vertical.png3.87KB1.95KB▼ 49.67%
js/skins/saokim/up.png4.54KB1.59KB▼ 64.90%
js/skins/saokim/next.png4.52KB1.60KB▼ 64.56%
screenshot-2.png20.05KB10.61KB▼ 47.06%