84% content-slideshow

Code Review | Content Slideshow

WordPress plugin Content Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: content-slideshow
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Sep 18, 2023
  • Number of updates: 40
  • Update frequency: every 88.5 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,025 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.18ms] Passed 4 tests

Server-side resources used by Content Slideshow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.71 ▲2.05
Dashboard /wp-admin3.35 ▲0.0548.78 ▲0.11
Posts /wp-admin/edit.php3.40 ▲0.0452.82 ▲1.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.66 ▼2.53
Media Library /wp-admin/upload.php3.27 ▲0.0442.05 ▲6.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_content_slideshow_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Content Slideshow: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.21 ▼1.475.01 ▲3.2442.15 ▲2.65
Dashboard /wp-admin2,224 ▲205.85 ▲0.9599.87 ▼10.4939.63 ▼7.73
Posts /wp-admin/edit.php2,097 ▼02.06 ▲0.0739.48 ▲2.0637.01 ▲1.91
Add New Post /wp-admin/post-new.php1,545 ▼023.18 ▼0.08656.44 ▼42.9776.63 ▲25.71
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.06111.25 ▲1.9747.77 ▼0.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_content_slideshow_widget
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-slideshow/content-slideshow.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/content-slideshow/slideshow.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-slideshow/slideshow-widget-shortcode.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: media library, automatic, slideshow, pictures, shortcode...

content-slideshow/content-slideshow.php 92% from 13 tests

"Content Slideshow" version 2.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin419 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35382268
PO File2223082
JavaScript1162169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin