93% eazy-flickity-slider

Code Review | Eazy Flickity Slider

WordPress plugin Eazy Flickity Slider scored 93% from 54 tests.

About plugin

  • Plugin page: eazy-flickity-slider
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 5.8.1
  • First release: May 9, 2016
  • Latest release: Jan 2, 2018
  • Number of updates: 16
  • Update frequency: every 37.6 days
  • Top authors: r0bsc0tt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,346 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼125.57ms] Passed 4 tests

A check of server-side resources used by Eazy Flickity Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1254.53 ▲20.34
Dashboard /wp-admin3.19 ▲0.1470.26 ▲17.24
Posts /wp-admin/edit.php3.29 ▲0.1966.42 ▲19.15
Add New Post /wp-admin/post-new.php5.55 ▲0.12114.63 ▼549.59
Media Library /wp-admin/upload.php3.13 ▲0.1345.86 ▲10.91
All Slides /wp-admin/edit.php?post_type=eazy_flickity_slide3.1854.15
Add New Slide /wp-admin/post-new.php?post_type=eazy_flickity_slide3.2665.71
Eazy Flickity Sliders /wp-admin/edit-tags.php?taxonomy=eazy_flickity_slider&post_type=eazy_flickity_slide3.1347.42

Server storage [IO: ▲0.23MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Eazy Flickity Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,902 ▲32016.81 ▲1.2018.29 ▲6.0452.72 ▲5.19
Dashboard /wp-admin3,009 ▲756.13 ▼0.09156.65 ▲1.36137.00 ▲21.89
Posts /wp-admin/edit.php2,806 ▲672.70 ▲0.0083.31 ▲14.7489.29 ▼0.29
Add New Post /wp-admin/post-new.php1,782 ▲9918.44 ▲2.30437.75 ▼24.96113.19 ▼5.46
Media Library /wp-admin/upload.php1,797 ▼135.01 ▲0.00144.94 ▼17.74139.14 ▲21.83
All Slides /wp-admin/edit.php?post_type=eazy_flickity_slide1,5142.6860.5775.51
Add New Slide /wp-admin/post-new.php?post_type=eazy_flickity_slide3,0269.10261.46160.53
Eazy Flickity Sliders /wp-admin/edit-tags.php?taxonomy=eazy_flickity_slider&post_type=eazy_flickity_slide1,8032.4160.7285.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazy-flickity-slider/resources/eazy_flickity_slider_functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazy-flickity-slider/resources/eazy_flickity_slider_admin_tinymce.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazy-flickity-slider/resources/eazy_flickity_slider_admin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 58 tag instead of maximum 10
The official readme.txt is a good inspiration

eazy-flickity-slider/eazy_flickity_slider.php 85% from 13 tests

The main file in "Eazy Flickity Slider" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eazy-flickity-slider.php" instead of "eazy_flickity_slider.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,060 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript78521,1763,529
PHP66853360
CSS22716171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/css/slidericon.png0.44KB0.31KB▼ 30.46%