94% acf-slick-slider

Code Review | ACF Slick Slider

WordPress plugin ACF Slick Slider scored 94% from 54 tests.

About plugin

  • Plugin page: acf-slick-slider
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3
  • WordPress version: 5.9.2
  • First release: Dec 5, 2019
  • Latest release: Jan 3, 2020
  • Number of updates: 32
  • Update frequency: every 0.9 days
  • Top authors: hallowichig0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 676 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.83ms] Passed 4 tests

Server-side resources used by ACF Slick Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0159.50 ▲5.66
Dashboard /wp-admin3.41 ▲0.0039.03 ▼1.83
Posts /wp-admin/edit.php3.64 ▲0.0040.12 ▼3.66
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.49 ▼1,203.48
Media Library /wp-admin/upload.php3.30 ▲0.0041.40 ▲8.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Slick Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲7816.00 ▲0.3611.74 ▲6.082.42 ▲0.02
Dashboard /wp-admin2,888 ▲276.01 ▼0.14118.19 ▼16.89156.41 ▼5.52
Posts /wp-admin/edit.php2,694 ▲63.22 ▼0.0162.85 ▲0.32136.97 ▼3.17
Add New Post /wp-admin/post-new.php1,760 ▲9922.68 ▲1.79416.52 ▼6.95162.64 ▲11.00
Media Library /wp-admin/upload.php1,701 ▼05.52 ▼0.02143.64 ▲4.94189.33 ▲2.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_local_field_group() in wp-content/plugins/acf-slick-slider/inc/slick-slider-fields/field_slider.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% 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 to be fixed: You can take inspiration from this readme.txt

acf-slick-slider/acf_slick_slider.php 92% from 13 tests

"ACF Slick Slider" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-slick-slider.php" instead of "acf_slick_slider.php")

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
Success! There were no dangerous files found in this plugin3,617 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

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.28
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-prev.png2.94KB0.17KB▼ 94.18%
images/arrow-next.png2.91KB0.18KB▼ 93.93%