93% easy-owl-carousel

Code Review | Easy Owl Carousel

WordPress plugin Easy Owl Carousel scored 93% from 54 tests.

About plugin

  • Plugin page: easy-owl-carousel
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 5.8.1
  • First release: Jun 9, 2016
  • Latest release: Jun 12, 2016
  • Number of updates: 30
  • Update frequency: every 0.1 days
  • Top authors: bhaskarbiswas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,106 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼169.31ms] Passed 4 tests

Server-side resources used by Easy Owl Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1636.47 ▲10.89
Dashboard /wp-admin3.10 ▲0.0549.33 ▼10.07
Posts /wp-admin/edit.php3.15 ▲0.0447.35 ▲6.31
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.71 ▼674.52
Media Library /wp-admin/upload.php3.04 ▲0.0434.65 ▲1.04
Owl Carousel Category /wp-admin/edit-tags.php?taxonomy=owl_carousel_cat&post_type=owl-carousel-items3.0427.03
Owl Carousels /wp-admin/edit.php?post_type=owl-carousel-items3.0830.18
Add New /wp-admin/post-new.php?post_type=owl-carousel-items3.1147.19

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Owl Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,862 ▲29016.34 ▲0.3416.12 ▲4.9048.01 ▼8.26
Dashboard /wp-admin3,013 ▲795.88 ▼0.14136.15 ▼18.94116.71 ▲2.68
Posts /wp-admin/edit.php2,779 ▲432.72 ▲0.0062.81 ▼2.1495.45 ▲1.74
Add New Post /wp-admin/post-new.php1,698 ▼17418.77 ▼0.23359.26 ▼13.92105.33 ▼2.20
Media Library /wp-admin/upload.php1,850 ▲405.06 ▲0.04145.87 ▲4.24115.77 ▲2.08
Owl Carousel Category /wp-admin/edit-tags.php?taxonomy=owl_carousel_cat&post_type=owl-carousel-items1,7792.3962.8881.70
Owl Carousels /wp-admin/edit.php?post_type=owl-carousel-items1,4582.7563.4480.54
Add New /wp-admin/post-new.php?post_type=owl-carousel-items2,3494.52100.1489.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% 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 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× 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/easy-owl-carousel/easyowlcarousel.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

easy-owl-carousel/easyowlcarousel.php 85% from 13 tests

The primary PHP file in "Easy Owl Carousel" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-owl-carousel.php" instead of "easyowlcarousel.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 219 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
No dangerous file extensions were detected108 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13414104
CSS20102
JavaScript1052

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
owlcarousel/css/owl.video.play.png4.86KB2.74KB▼ 43.61%