10% acquaint-slick-slider

Code Review | Acquaint Slick Slider

WordPress plugin Acquaint Slick Slider scored 10% from 54 tests.

About plugin

  • Plugin page: acquaint-slick-sl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.1
  • WordPress version: 5.9.2
  • First release: Jan 25, 2017
  • Latest release: Jan 25, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: itcoderr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 917 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, function 'activate_acq_slick_slider' not found or invalid function name

Server metrics [RAM: ▲0.12MB] [CPU: ▼297.03ms] Passed 4 tests

This is a short check of server-side resources used by Acquaint Slick Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1855.44 ▲3.92
Dashboard /wp-admin3.56 ▲0.1535.55 ▼5.03
Posts /wp-admin/edit.php3.78 ▲0.1438.33 ▼1.23
Add New Post /wp-admin/post-new.php7.03 ▲0.06103.35 ▼1,179.50
Media Library /wp-admin/upload.php3.43 ▲0.1424.58 ▼2.37
Add New Slider /wp-admin/post-new.php?post_type=aqs_gallery3.8443.53
All Sliders /wp-admin/edit.php?post_type=aqs_gallery3.5425.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Acquaint Slick Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,941 ▲18716.21 ▲0.679.18 ▲2.972.62 ▲0.01
Dashboard /wp-admin2,923 ▲656.17 ▼0.01119.11 ▼15.32158.18 ▼6.29
Posts /wp-admin/edit.php2,725 ▲313.24 ▲0.0062.72 ▼4.66140.20 ▼5.16
Add New Post /wp-admin/post-new.php1,731 ▲5915.71 ▼5.17420.41 ▼13.30171.62 ▲16.53
Media Library /wp-admin/upload.php1,732 ▲345.54 ▲0.00141.66 ▼3.86186.84 ▲2.06
Add New Slider /wp-admin/post-new.php?post_type=aqs_gallery2,8456.22100.28183.38
All Sliders /wp-admin/edit.php?post_type=aqs_gallery1,4103.1660.48111.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate_acq_slick_slider' not found or invalid function name

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acquaint-slick-slider/public/partials/acq-slick-slider-public-display.php
    • > /wp-content/plugins/acquaint-slick-slider/admin/partials/acq-slick-slider-admin-display.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/acquaint-slick-slider/aqss-layout.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/acquaint-slick-slider/acq-slick-slider-short-code.php:7
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/acquaint-slick-slider/acq-slick-slider-settings-meta-box.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/acquaint-slick-slider/acq-slick-slider-settings-meta-box.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/acquaint-slick-slider/aqss-layout.php:7
    • > PHP Notice
      Undefined variable: Id in wp-content/plugins/acquaint-slick-slider/aqss-layout.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/acquaint-slick-slider/acq-slick-slider.php:29
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/acquaint-slick-slider/acq-slick-slider-settings-meta-box.php on line 5

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=aqs_gallery
    • > Network (severe)
    wp-content/plugins/acquaint-slick-slider/tooltip/jquery.darktooltip.min.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=aqs_gallery
    • > Network (severe)
    wp-content/plugins/acquaint-slick-slider/tooltip/darktooltip.min.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: responsive, carousel, photos, gallery, images...

acquaint-slick-slider/acq-slick-slider.php 85% from 13 tests

The primary PHP file in "Acquaint Slick Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("acquaint-slick-slider.php" instead of "acq-slick-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,972 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript91,1752943,495
Sass1326241,352
LESS1326331,343
CSS7196731,155
PHP152565981,027
SVG210578
HTML118022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.28
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods36.98%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/acq_Close-icon.png18.37KB8.39KB▼ 54.31%
css/images/delet.png0.99KB0.14KB▼ 85.45%
admin/images/delet.png0.98KB0.14KB▼ 85.37%