68% wp-content-slideshow-reborn

Code Review | WP Content Slideshow Reborn

WordPress plugin WP Content Slideshow Reborn scored68%from 54 tests.

About plugin

  • Plugin page: wp-content-slides...
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: Dec 23, 2013
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: uziiuzair (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,154 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.95ms] Passed 4 tests

An overview of server-side resources used by WP Content Slideshow Reborn
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.71 ▼1.37
Dashboard /wp-admin3.00 ▼0.3025.03 ▼35.54
Posts /wp-admin/edit.php3.01 ▼0.3526.40 ▼18.79
Add New Post /wp-admin/post-new.php3.01 ▼2.8826.30 ▼66.21
Media Library /wp-admin/upload.php3.01 ▼0.2222.39 ▼15.27
WP Content Slideshow /wp-admin/options-general.php?page=wp-content-slideshow-reborn/options.php3.0123.78

Server storage [IO: ▲0.22MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Content Slideshow Reborn: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.57 ▼0.585.98 ▲4.2438.76 ▼10.02
Dashboard /wp-admin2,210 ▲365.07 ▼0.74102.76 ▲2.2638.24 ▼1.57
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0439.54 ▲1.5934.75 ▼2.98
Add New Post /wp-admin/post-new.php6,239 ▲4,71921.48 ▼1.96892.85 ▲218.9956.11 ▼7.20
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0295.67 ▼15.6644.05 ▼3.91
WP Content Slideshow /wp-admin/options-general.php?page=wp-content-slideshow-reborn/options.php1,0602.0327.8735.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-content-slideshow-reborn/options.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: options_page in wp-content/plugins/wp-content-slideshow-reborn/options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-content-slideshow-reborn/wp-content-slideshow-reborn.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-content-slideshow-reborn/options.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-content-slideshow-reborn/content-slideshow.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-content-slideshow-reborn === )
  • Screenshots: These screenshots do not have images: #1 (This is how WP-Content Slideshow Reborn might look in your theme.), #2 (This is what your Administration Section for the Content Slideshow will look like.)
Please take inspiration from this readme.txt

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

The principal PHP file in "WP Content Slideshow Reborn" v. 3.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)

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
Good job! No executable or dangerous file extensions detected1,445 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21141261,064
PHP39424381

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.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
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png99.10KB32.04KB▼ 67.67%
screenshot-2.png55.96KB20.83KB▼ 62.78%