84% mykraft-owl-slider

Code Review | Mykraft Owl Slider Plugin

WordPress plugin Mykraft Owl Slider Plugin scored84%from 54 tests.

About plugin

  • Plugin page: mykraft-owl-slider
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2014
  • Latest release: Oct 18, 2022
  • Number of updates: 42
  • Update frequency: every 68.5 days
  • Top authors: gojak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,049 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.37ms] Passed 4 tests

A check of server-side resources used by Mykraft Owl Slider Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.34 ▼3.66
Dashboard /wp-admin3.38 ▲0.0846.20 ▼6.95
Posts /wp-admin/edit.php3.43 ▲0.0848.41 ▲2.89
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.55 ▼1.76
Media Library /wp-admin/upload.php3.30 ▲0.0842.29 ▲7.94
Slider /wp-admin/edit.php?post_type=slides3.3536.11
Add New Slide /wp-admin/post-new.php?post_type=slides3.3657.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mykraft Owl Slider Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲14413.26 ▼1.152.56 ▲0.8943.53 ▲1.79
Dashboard /wp-admin2,239 ▲504.90 ▼0.99102.75 ▼14.4781.81 ▲35.77
Posts /wp-admin/edit.php2,122 ▲332.05 ▲0.0337.27 ▼2.8833.95 ▲1.08
Add New Post /wp-admin/post-new.php1,704 ▲17124.37 ▲1.35642.31 ▼14.2954.46 ▲0.14
Media Library /wp-admin/upload.php1,418 ▲304.13 ▼0.07113.84 ▲16.4943.66 ▼0.98
Slider /wp-admin/edit.php?post_type=slides1,0832.0034.9029.60
Add New Slide /wp-admin/post-new.php?post_type=slides1,7213.6165.2885.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mykraft-owl-slider/mykraft-owl-slider.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: wordpress, simple, custom, slider, slideshow...

mykraft-owl-slider/mykraft-owl-slider.php 92% from 13 tests

This is the main PHP file of "Mykraft Owl Slider Plugin" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 316 characters long)

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
There were no executable files found in this plugin1,857 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3210171,349
PHP12536299
CSS21927209

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
owl-carousel/grabbing.png5.48KB1.93KB▼ 64.71%
images/slider-icon.png3.31KB0.70KB▼ 78.87%
images/slider-background.png5.29KB1.39KB▼ 73.77%