84% snazzy-slider

Code Review | Snazzy Slider

WordPress plugin Snazzy Slider scored84%from 54 tests.

About plugin

  • Plugin page: snazzy-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Nov 16, 2015
  • Number of updates: 21
  • Update frequency: every 1.6 days
  • Top authors: joshcummingsdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.35ms] Passed 4 tests

Analyzing server-side resources used by Snazzy Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.26 ▼23.55
Dashboard /wp-admin3.33 ▲0.0347.41 ▼8.76
Posts /wp-admin/edit.php3.38 ▲0.0345.43 ▼0.32
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.44 ▲3.23
Media Library /wp-admin/upload.php3.26 ▲0.0349.46 ▲11.86
Edit Recent Slider /wp-admin/admin.php?page=snazzy-slider-edit3.4742.06
Add / Edit Sliders /wp-admin/admin.php?page=snazzy-slider3.2734.51

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
snzysldr_options

Browser metrics Passed 4 tests

Checking browser requirements for Snazzy Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.34 ▼0.371.62 ▼0.1342.77 ▼0.67
Dashboard /wp-admin2,238 ▲585.59 ▼0.0791.25 ▼8.5040.65 ▼0.77
Posts /wp-admin/edit.php2,140 ▲371.95 ▼0.0239.78 ▼0.3032.42 ▲0.65
Add New Post /wp-admin/post-new.php1,559 ▲3123.00 ▼0.07671.79 ▲74.3859.00 ▲13.05
Media Library /wp-admin/upload.php1,443 ▲404.16 ▼0.05114.17 ▲6.1750.01 ▲6.81
Edit Recent Slider /wp-admin/admin.php?page=snazzy-slider-edit1,7424.3483.0040.20
Add / Edit Sliders /wp-admin/admin.php?page=snazzy-slider9312.0525.2026.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/snazzy-slider/admin/partials/snzysldr-submenu-content.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/snzysldr-admin.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/public/snzysldr-public.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/includes/snzysldr-submenu-data-processing.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/includes/snzysldr-submenu-form-processing.php:144
    • > PHP Notice
      Undefined variable: slider_name in wp-content/plugins/snazzy-slider/public/partials/snzysldr-public-content.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/includes/snzysldr-admin-data-processing.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/snazzy-slider/public/partials/snzysldr-public-content.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/snazzy-slider/admin/partials/snzysldr-admin-content.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/snazzy-slider/snazzy-slider.php:62

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

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

This is the main PHP file of "Snazzy Slider" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Elegant, responsive, accessible sliders for WordPress.

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
No dangerous file extensions were detected4,783 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54481,1122,384
CSS4130121,281
PHP11343861,089
SVG90229

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity2.75
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/size.png0.31KB0.23KB▼ 24.92%
admin/img/upload.png0.36KB0.28KB▼ 22.22%
admin/img/plus.png1.06KB0.45KB▼ 57.34%
admin/img/text_large.png1.53KB1.07KB▼ 30.33%
admin/img/check.png0.32KB0.23KB▼ 28.40%