83% category-slider-for-elementor

Code Review | Category slider for Elementor

WordPress plugin Category slider for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: category-slider-f...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: May 24, 2022
  • Latest release: Jun 17, 2023
  • Number of updates: 18
  • Update frequency: every 21.6 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.96ms] Passed 4 tests

Analyzing server-side resources used by Category slider for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.96 ▼3.26
Dashboard /wp-admin3.36 ▲0.0151.17 ▼12.87
Posts /wp-admin/edit.php3.48 ▲0.1157.14 ▲3.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.30 ▼26.76
Media Library /wp-admin/upload.php3.26 ▲0.0340.77 ▲3.65

Server storage [IO: ▲0.03MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Category slider for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16814.74 ▲0.511.63 ▼0.2642.18 ▼0.56
Dashboard /wp-admin2,335 ▲1616.15 ▲0.59113.03 ▲9.3139.54 ▼2.88
Posts /wp-admin/edit.php2,263 ▲1633.31 ▲1.3149.64 ▲11.7130.37 ▼7.33
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▲0.22659.75 ▼51.3435.97 ▼30.80
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.1186.25 ▼20.2144.20 ▼4.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/category-slider-for-elementor/widgets/CategorySlider.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-slider-for-elementor/miga_category_slider.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: swiper, elementor widget, category, widgets, slider...

category-slider-for-elementor/miga_category_slider.php 77% from 13 tests

"Category slider for Elementor" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("category-slider-for-elementor.php" instead of "miga_category_slider.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin735 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26731633
JavaScript12152
CSS110050

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods222.22%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
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
No PNG files were detected