78% all-in-one-slider

Code Review | All in One Slider

WordPress plugin All in One Slider scored78%from 54 tests.

About plugin

  • Plugin page: all-in-one-slider
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: Aug 6, 2013
  • Latest release: Sep 11, 2014
  • Number of updates: 4
  • Update frequency: every 100.5 days
  • Top authors: shahriar0822 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,586 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.17MB] [CPU: ▼17.45ms] Passed 4 tests

An overview of server-side resources used by All in One Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.40 ▼0.95
Dashboard /wp-admin3.13 ▼0.1828.15 ▼21.48
Posts /wp-admin/edit.php3.26 ▼0.0932.99 ▼13.55
Add New Post /wp-admin/post-new.php5.51 ▼0.3865.93 ▼33.81
Media Library /wp-admin/upload.php3.21 ▼0.0237.03 ▲1.45
Add New /wp-admin/post-new.php?post_type=slide3.3034.88
All Slides /wp-admin/edit.php?post_type=slide3.2432.63
Sliders /wp-admin/edit.php?post_type=slide&page=sliders3.2933.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for All in One Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.80 ▼0.218.26 ▲6.6542.79 ▲4.63
Dashboard /wp-admin2,228 ▲515.64 ▲0.0282.25 ▼11.0961.31 ▲14.27
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.1036.45 ▼1.5929.42 ▼9.76
Add New Post /wp-admin/post-new.php1,714 ▲18824.28 ▲1.28688.76 ▲7.3859.00 ▼30.35
Media Library /wp-admin/upload.php1,430 ▲304.10 ▼0.30104.75 ▲6.2274.29 ▲28.09
Add New /wp-admin/post-new.php?post_type=slide2,2357.77166.83128.41
All Slides /wp-admin/edit.php?post_type=slide1,1031.9535.8331.19
Sliders /wp-admin/edit.php?post_type=slide&page=sliders1,0872.6056.5233.03

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=slide
    • > Notice in wp-content/plugins/all-in-one-slider/all-in-one-slider.php+60
    Undefined index: page

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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/all-in-one-slider/sliders/bootstrap-carousel/slider.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/all-in-one-slider/sliders/camera/slider.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-in-one-slider/tpls/mce-button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/all-in-one-slider/tpls/manage-sliders.php:76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-in-one-slider/tpls/mce-button.php:2

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 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Please add images for these screenshots: #1 (Slider list), #2 (Create new slider options)
Please take inspiration from this readme.txt

all-in-one-slider/all-in-one-slider.php Passed 13 tests

The entry point to "All in One Slider" version 1.1 is a PHP file that has certain tags in its header comment area
17 characters long description:
All in One Slider

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 detected11,605 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS69512187,424
JavaScript67954153,554
PHP62471,170627

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity206.00
▷ Minimum class complexity206.00
▷ Maximum class complexity206.00
Average method complexity6.86
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods38.57%
▷ Public methods514.29%
▷ Protected methods3085.71%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants46100.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
40 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
sliders/bootstrap-carousel/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
css/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
sliders/bootstrap-carousel/img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%