10% total-slider

Code Review | Total Slider

WordPress plugin Total Slider scored10%from 54 tests.

About plugin

  • Plugin page: total-slider
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 11, 2012
  • Latest release: May 9, 2015
  • Number of updates: 28
  • Update frequency: every 69.1 days
  • Top authors: VanPattenMedia (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /27,614 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

Server metrics [RAM: ▲0.45MB] [CPU: ▲1.77ms] Passed 4 tests

A check of server-side resources used by Total Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5044.46 ▼2.19
Dashboard /wp-admin3.79 ▲0.4952.65 ▲2.06
Posts /wp-admin/edit.php3.84 ▲0.4857.04 ▲12.24
Add New Post /wp-admin/post-new.php6.31 ▲0.4297.08 ▲5.67
Media Library /wp-admin/upload.php3.64 ▲0.4138.92 ▲1.53
Settings /wp-admin/admin.php?page=total-slider-settings3.6539.77
Slide Groups /wp-admin/admin.php?page=total-slider3.7145.28

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-comments
total_slider_slide_groups
total_slider_dataformat_version
can_compress_scripts
widget_theysaidso_widget
widget_total_slider_widget
total_slider_general_options
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Total Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.25 ▼0.041.56 ▼0.2340.36 ▼4.22
Dashboard /wp-admin2,226 ▲465.59 ▼0.0794.39 ▲2.7578.52 ▲36.30
Posts /wp-admin/edit.php2,140 ▲401.97 ▼0.0639.43 ▲3.2832.75 ▼2.24
Add New Post /wp-admin/post-new.php1,579 ▲4817.99 ▼5.27691.82 ▲3.6352.07 ▼2.76
Media Library /wp-admin/upload.php1,428 ▲254.20 ▲0.06104.82 ▲0.9870.57 ▲22.05
Settings /wp-admin/admin.php?page=total-slider-settings9442.1826.2728.67
Slide Groups /wp-admin/admin.php?page=total-slider1,4313.3546.7471.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • total_slider_general_options
    • total_slider_dataformat_version
    • total_slider_slide_groups
    • widget_total_slider_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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 no errors were found, this is by no means 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
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: s in wp-content/plugins/total-slider/templates/twentytwelve-alt/twentytwelve-alt.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/total-slider/includes/class.slide-groups-table.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/total-slider/total-slider.php:63
    • > PHP Notice
      Undefined variable: s in wp-content/plugins/total-slider/templates/default/default.php on line 41
    • > PHP Notice
      Undefined variable: s in wp-content/plugins/total-slider/templates/twentytwelve/twentytwelve.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_runtime() on null in wp-content/plugins/total-slider/templates/twentytwelve-alt/twentytwelve-alt.php:28
    • > PHP Fatal error
      Uncaught Error: Call to a member function slides_count() on null in wp-content/plugins/total-slider/templates/default/default.php:41
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_runtime() on null in wp-content/plugins/total-slider/templates/twentytwelve/twentytwelve.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/total-slider/includes/class.total-slider-widget.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: slideshow, rotator, rotation, slider

total-slider/total-slider.php Passed 13 tests

The main file in "Total Slider" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
The best experience for building sliders, with true WYSIWYG, drag & drop and more!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,002 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript139174284,946
PHP311,4542,0453,881
CSS412664504
PO File1184134418
HTML2740253

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity44.62
▷ Minimum class complexity2.00
▷ Maximum class complexity133.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods131
▷ Static methods32.29%
▷ Public methods12696.18%
▷ Protected methods00.00%
▷ Private methods53.82%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/total-slider-icon-32.png1.40KB0.51KB▼ 63.63%
img/slider-desc-bg.png0.29KB0.11KB▼ 62.84%
img/total-slider-icon-16.png0.34KB0.28KB▼ 18.50%
img/vpm.png2.58KB2.15KB▼ 16.77%
img/icons.png0.60KB0.52KB▼ 12.58%