10% acquaint-owl-carousel

Code Review | Acquaint Owl Carousel

WordPress plugin Acquaint Owl Carousel scored 10% from 54 tests.

About plugin

  • Plugin page: acquaint-owl-caro...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 5.9.2
  • First release: Jan 25, 2017
  • Latest release: Jan 27, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: itcoderr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 890 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please 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_acquaint_owl_carousel' not found or invalid function name

Server metrics [RAM: ▼1.27MB] [CPU: ▼347.86ms] Passed 4 tests

Server-side resources used by Acquaint Owl Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.17 ▼0.3417.28 ▼47.04
Dashboard /wp-admin3.09 ▼0.3114.73 ▼18.25
Posts /wp-admin/edit.php3.09 ▼0.5516.25 ▼21.45
Add New Post /wp-admin/post-new.php3.09 ▼3.8815.21 ▼1,304.68
Media Library /wp-admin/upload.php3.09 ▼0.2013.94 ▼9.33
Acquaint Owl Carousel /wp-admin/edit.php?post_type=owl_carousel3.0914.26
Add New Slider /wp-admin/post-new.php?post_type=owl_carousel3.0914.64

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Acquaint Owl Carousel: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,005 ▲25116.86 ▲0.8414.57 ▲7.432.25 ▼0.20
Dashboard /wp-admin2,929 ▲686.31 ▲0.13118.55 ▼18.57156.63 ▼5.40
Posts /wp-admin/edit.php2,647 ▼383.26 ▲0.0270.59 ▲5.41145.28 ▲1.87
Add New Post /wp-admin/post-new.php1,802 ▲11221.34 ▲0.67435.68 ▼14.77160.33 ▼6.13
Media Library /wp-admin/upload.php1,735 ▲375.58 ▲0.10141.31 ▼9.21189.38 ▼9.29
Acquaint Owl Carousel /wp-admin/edit.php?post_type=owl_carousel1,4193.1860.01115.32
Add New Slider /wp-admin/post-new.php?post_type=owl_carousel2,3564.23108.30162.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+77
    Use of undefined constant AQSS_TEXT_DOMAIN - assumed 'AQSS_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Warning in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+80
    Use of undefined constant AQSS_TEXT_DOMAIN - assumed 'AQSS_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+497
    Undefined index: slider_type
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+509
    Undefined index: slider_image
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+509
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Warning in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+509
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+539
    Undefined variable: slidetitle
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+545
    Undefined variable: slideimage
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+551
    Undefined variable: slidemerge
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+557
    Undefined variable: slidevideo
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=owl_carousel
    • > Notice in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php+335
    Undefined index: action

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acquaint-owl-carousel/public/partials/acquaint-owl-carousel-public-display.php
    • > /wp-content/plugins/acquaint-owl-carousel/admin/partials/acquaint-owl-carousel-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acquaint-owl-carousel/acquaint-owl-carousel.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

acquaint-owl-carousel/acquaint-owl-carousel.php Passed 13 tests

The main PHP script in "Acquaint Owl Carousel" version 1.0.0 is automatically included on every request by WordPress
95 characters long description:
This is a owl carousel plugin, which provide a dynamic way to create owl carousel with options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,100 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS8494613,161
JavaScript54749752,789
PHP121585871,150

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/sprite.png2.03KB0.97KB▼ 52.12%
(invalid) admin/images/._sprite.png4.00KB0.00KB▼ 100.00%
assets/css/owl.video.play.png4.86KB2.74KB▼ 43.61%
images/s_pin.png1.52KB1.12KB▼ 26.29%