10% acquaint-owl-carousel

Code Review | Acquaint Owl Carousel

WordPress plugin Acquaint Owl Carousel scored10%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: 6.3.1
  • 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 /1,066 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    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.08MB] [CPU: ▼40.08ms] Passed 4 tests

An overview of server-side resources used by Acquaint Owl Carousel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5716.84 ▼22.55
Dashboard /wp-admin2.93 ▼0.3719.48 ▼31.39
Posts /wp-admin/edit.php2.93 ▼0.4217.66 ▼33.16
Add New Post /wp-admin/post-new.php2.93 ▼2.9518.41 ▼73.20
Media Library /wp-admin/upload.php2.93 ▼0.2915.77 ▼17.77
Acquaint Owl Carousel /wp-admin/edit.php?post_type=owl_carousel2.9418.43
Add New Slider /wp-admin/post-new.php?post_type=owl_carousel2.9316.66

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Acquaint Owl Carousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲28114.02 ▼0.3612.66 ▲10.8363.58 ▲20.82
Dashboard /wp-admin2,251 ▲455.92 ▲1.0296.67 ▼9.3538.99 ▼4.47
Posts /wp-admin/edit.php2,057 ▼432.06 ▲0.0639.27 ▲0.8434.68 ▼0.86
Add New Post /wp-admin/post-new.php1,564 ▲2918.39 ▼4.93637.02 ▼55.6564.21 ▲0.95
Media Library /wp-admin/upload.php1,433 ▲334.27 ▲0.0698.38 ▼2.0045.59 ▲2.99
Acquaint Owl Carousel /wp-admin/edit.php?post_type=owl_carousel1,1052.0233.0032.18
Add New Slider /wp-admin/post-new.php?post_type=owl_carousel1,7702.7156.1566.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > 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)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /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× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"Acquaint Owl Carousel" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected7,100 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS8494613,161
JavaScript54749752,789
PHP121585871,150

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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%
images/s_pin.png1.52KB1.12KB▼ 26.29%
assets/css/owl.video.play.png4.86KB2.74KB▼ 43.61%
(invalid) admin/images/._sprite.png4.00KB0.00KB▼ 100.00%