79% jtc-slides

Code Review | JTC Slides

WordPress plugin JTC Slides scored79%from 54 tests.

About plugin

  • Plugin page: jtc-slides
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Dec 1, 2015
  • Number of updates: 18
  • Update frequency: every 7.7 days
  • Top authors: jtc-art (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,516 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.05ms] Passed 4 tests

Server-side resources used by JTC Slides
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.37 ▼1.39
Dashboard /wp-admin3.46 ▲0.1647.83 ▼0.58
Posts /wp-admin/edit.php3.57 ▲0.2246.79 ▼3.36
Add New Post /wp-admin/post-new.php6.06 ▲0.1883.35 ▼14.72
Media Library /wp-admin/upload.php3.38 ▲0.1635.80 ▼0.74
Add New Slide /wp-admin/post-new.php?post_type=jtc_slides3.4745.83
JTC Slides /wp-admin/edit.php?post_type=jtc_slides3.4331.96
JTC Slide Shows /wp-admin/edit-tags.php?taxonomy=jtc_slide_show&post_type=jtc_slides3.3832.94

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for JTC Slides
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.48 ▼0.901.66 ▼0.6044.86 ▼1.18
Dashboard /wp-admin2,262 ▲745.20 ▲0.31102.04 ▼1.6738.81 ▼6.02
Posts /wp-admin/edit.php2,144 ▲732.31 ▲0.2635.43 ▼2.2532.66 ▼5.32
Add New Post /wp-admin/post-new.php1,560 ▲2723.11 ▼0.20663.46 ▼14.2336.92 ▼17.49
Media Library /wp-admin/upload.php1,447 ▲564.46 ▲0.24101.14 ▼6.5242.70 ▼4.75
Add New Slide /wp-admin/post-new.php?post_type=jtc_slides1,8403.8169.0934.08
JTC Slides /wp-admin/edit.php?post_type=jtc_slides1,1202.2636.0126.22
JTC Slide Shows /wp-admin/edit-tags.php?taxonomy=jtc_slide_show&post_type=jtc_slides1,6472.3549.6028.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jtc-slides/post-types/post_type_jtc_slide_shows.php
    • > /wp-content/plugins/jtc-slides/jtc-slides.php
    • > /wp-content/plugins/jtc-slides/settings.php
    • > /wp-content/plugins/jtc-slides/post-types/post_type_jtc_slides.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=jtc_slide_show&post_type=jtc_slides
    • > Network (severe)
    wp-content/plugins/jtc-slides/post-types/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: responsive slide show, responsive slideshow, image rotator, slides, slide show...

jtc-slides/jtc-slides.php Passed 13 tests

The main file in "JTC Slides" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
A simple wordpress customizable responsive slideshow with box navigation

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
Success! There were no dangerous files found in this plugin637 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4143199626
JavaScript15011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/jtc-slides-screen-shot-2.png197.66KB51.08KB▼ 74.16%