84% acf-slick-slider

Code Review | ACF Slick Slider

WordPress plugin ACF Slick Slider scored84%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: 6.3.1
  • 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 /963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by ACF Slick Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.62 ▼0.90
Dashboard /wp-admin3.34 ▲0.0345.67 ▼2.28
Posts /wp-admin/edit.php3.39 ▲0.0350.34 ▼0.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.14 ▼17.43
Media Library /wp-admin/upload.php3.26 ▲0.0337.33 ▲0.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, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Slick Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.48 ▲0.113.95 ▲2.3839.17 ▼8.22
Dashboard /wp-admin2,209 ▲214.85 ▼1.0599.97 ▼10.9140.45 ▼3.09
Posts /wp-admin/edit.php2,092 ▲32.13 ▲0.1340.31 ▼2.3036.30 ▲0.88
Add New Post /wp-admin/post-new.php1,534 ▲1522.94 ▼0.30680.58 ▼7.7955.00 ▼4.00
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0497.90 ▼15.1539.63 ▼6.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

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

The principal PHP file in "ACF Slick Slider" v. 1.4.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,617 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript48361002,627
PHP65868470
CSS32015397
Sass311123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in 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%