90% simple-acf-gallery-slider

Code Review | Simple ACF Gallery Slider

WordPress plugin Simple ACF Gallery Slider scored 90% from 54 tests.

About plugin

  • Plugin page: simple-acf-galler...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: May 8, 2019
  • Latest release: May 8, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: sortedpixel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 635 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.04ms] Passed 4 tests

A check of server-side resources used by Simple ACF Gallery Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.90 ▼3.98
Dashboard /wp-admin3.31 ▲0.0044.04 ▼3.31
Posts /wp-admin/edit.php3.36 ▲0.0046.03 ▼3.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.57 ▼13.56
Media Library /wp-admin/upload.php3.23 ▲0.0032.28 ▼2.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple ACF Gallery Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲1913.69 ▲0.381.58 ▼0.5333.82 ▼10.70
Dashboard /wp-admin2,216 ▲105.84 ▲0.94111.44 ▲12.9246.42 ▲6.52
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0535.46 ▼1.9235.33 ▼1.88
Add New Post /wp-admin/post-new.php1,427 ▼10621.91 ▼1.33561.64 ▼69.7453.80 ▼6.15
Media Library /wp-admin/upload.php1,395 ▲134.04 ▼0.1698.11 ▼3.0338.94 ▼3.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

simple-acf-gallery-slider/simple-acf-gallery-slider.php Passed 13 tests

The primary PHP file in "Simple ACF Gallery Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
96 characters long description:
This Plugin Simple ACF Gallery Slider Creates A Responsive Slider Using Gallery Fields From ACF.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2213391

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ 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
No PNG images were found in this plugin