84% good-slider

Code Review | Good Slider

WordPress plugin Good Slider scored84%from 54 tests.

About plugin

  • Plugin page: good-slider
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Nov 28, 2022
  • Latest release: Nov 1, 2023
  • Number of updates: 15
  • Update frequency: every 22.7 days
  • Top authors: goodwpio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /893 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Good Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.78 ▼4.50
Dashboard /wp-admin3.35 ▲0.0447.76 ▼4.74
Posts /wp-admin/edit.php3.40 ▲0.0444.80 ▼12.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.29 ▼21.32
Media Library /wp-admin/upload.php3.27 ▲0.0441.18 ▲7.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Good Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.27 ▼0.361.83 ▲0.1043.32 ▼2.30
Dashboard /wp-admin2,198 ▲185.65 ▼0.0282.82 ▼17.4937.90 ▼5.90
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0135.80 ▼0.2433.16 ▼2.50
Add New Post /wp-admin/post-new.php1,698 ▲17022.07 ▼0.95644.22 ▼49.9431.07 ▼24.86
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.05102.32 ▲1.3346.07 ▼0.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GoodWP\\GoodSlider\\add_action() in wp-content/plugins/good-slider/good-slider.php:38

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: block, swiper, slider

good-slider/good-slider.php Passed 13 tests

The main PHP file in "Good Slider" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
A simple and extendable slider block using Swiper

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
Good job! No executable or dangerous file extensions detected571 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
JSON400243
JavaScript162613200
PHP6178197
Sass43227
CSS4004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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
Namespaces1
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%
Functions5
▷ Named functions5100.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
No PNG files were detected