90% image-slider-pro

Code Review | Image Slider PRO owlCarousel

WordPress plugin Image Slider PRO owlCarousel scored90%from 54 tests.

About plugin

  • Plugin page: image-slider-pro
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 20, 2021
  • Latest release: Jul 20, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bokhtyer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.80ms] Passed 4 tests

This is a short check of server-side resources used by Image Slider PRO owlCarousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0539.61 ▼4.16
Dashboard /wp-admin3.39 ▲0.0550.47 ▼2.55
Posts /wp-admin/edit.php3.50 ▲0.1165.18 ▲13.48
Add New Post /wp-admin/post-new.php5.97 ▲0.0490.30 ▼7.49
Media Library /wp-admin/upload.php3.31 ▲0.0438.08 ▼1.00
Add New /wp-admin/post-new.php?post_type=_image_slider3.4348.95
All Sliders /wp-admin/edit.php?post_type=_image_slider3.3639.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Image Slider PRO owlCarousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14814.64 ▲0.296.21 ▲4.5046.75 ▲4.58
Dashboard /wp-admin2,225 ▲485.63 ▲0.0682.62 ▼7.2139.69 ▼4.84
Posts /wp-admin/edit.php2,130 ▲301.99 ▲0.0338.90 ▼0.0545.54 ▲13.68
Add New Post /wp-admin/post-new.php1,549 ▲1223.02 ▲4.81699.41 ▲91.1767.40 ▲2.92
Media Library /wp-admin/upload.php1,427 ▲274.14 ▼0.05101.33 ▲1.4140.98 ▼4.38
Add New /wp-admin/post-new.php?post_type=_image_slider2,1817.67175.4165.77
All Sliders /wp-admin/edit.php?post_type=_image_slider1,0971.9730.9029.70

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: wordpress-slider, slider, owl-carousul, image-slider, image-slider-pro...

image-slider-pro/image-slider-pro.php 92% from 13 tests

The main file in "Image Slider PRO owlCarousel" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Success! There were no dangerous files found in this plugin166 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22329112
CSS301450
JavaScript2264

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin