74% radslide

Code Review | radSLIDE

WordPress plugin radSLIDE scored74%from 54 tests.

About plugin

  • Plugin page: radslide
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2010
  • Latest release: Apr 28, 2015
  • Number of updates: 12
  • Update frequency: every 140.4 days
  • Top authors: radicaldesigns (91.67%)tesladethray (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,166 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼20.75ms] Passed 4 tests

An overview of server-side resources used by radSLIDE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.70 ▼9.13
Dashboard /wp-admin3.41 ▲0.0655.44 ▼10.58
Posts /wp-admin/edit.php3.52 ▲0.1653.59 ▲0.84
Add New Post /wp-admin/post-new.php4.70 ▼1.1947.06 ▼64.13
Media Library /wp-admin/upload.php3.33 ▲0.1041.86 ▲5.12
Slideshows /wp-admin/admin.php?page=radslide_slideshows3.3035.85
Help /wp-admin/admin.php?page=radslide_help3.2936.66
Uninstall /wp-admin/admin.php?page=radslide_uninstall3.2936.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 119 new files
Database: 2 new tables, 7 new options
New tables
wp_radslide_slideshow
wp_radslide_slide
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
radslide_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for radSLIDE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.77 ▼0.769.09 ▲7.1943.91 ▼1.39
Dashboard /wp-admin2,230 ▲535.62 ▼0.0092.75 ▲3.5842.30 ▲1.53
Posts /wp-admin/edit.php2,138 ▲412.03 ▲0.0635.04 ▼2.7432.69 ▼3.09
Add New Post /wp-admin/post-new.php1,637 ▲11123.48 ▲0.27686.14 ▲57.1653.26 ▲1.46
Media Library /wp-admin/upload.php1,438 ▲414.17 ▲0.00102.53 ▲4.9745.30 ▲2.00
Slideshows /wp-admin/admin.php?page=radslide_slideshows8391.9741.6735.61
Help /wp-admin/admin.php?page=radslide_help9532.0322.1228.72
Uninstall /wp-admin/admin.php?page=radslide_uninstall8441.8324.7932.48

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_radslide_slideshow
    • wp_radslide_slide
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • radslide_db_version
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 6× 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/radslide/ajax/slides.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radslide/ajax/uninstall.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radslide/display.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radslide/setup.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radslide/ajax/slideshows.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radslide/display.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Managing a slideshow) image not found
You can look at the official readme.txt

radslide/radslide.php Passed 13 tests

The entry point to "radSLIDE" version 2.1 is a PHP file that has certain tags in its header comment area
85 characters long description:
A javascript slideshow plugin that supports multiple slideshows and uses jQuery Cycle

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin16,190 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript421,1241,71010,132
HTML24665124,542
CSS1827452988
PHP109170528

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/codemirror/css/baboon.png21.23KB10.56KB▼ 50.26%