89% simple-wp-slider

Code Review | Simple WP Slider

WordPress plugin Simple WP Slider scored89%from 54 tests.

About plugin

  • Plugin page: simple-wp-slider
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2022
  • Latest release: Oct 27, 2023
  • Number of updates: 7
  • Update frequency: every 86.1 days
  • Top authors: sungraizfaryad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.54ms] Passed 4 tests

This is a short check of server-side resources used by Simple WP Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.53 ▼2.64
Dashboard /wp-admin3.35 ▲0.0550.79 ▲5.07
Posts /wp-admin/edit.php3.47 ▲0.1149.27 ▼2.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.55 ▼9.86
Media Library /wp-admin/upload.php3.25 ▲0.0235.09 ▲5.19
Simple WP Slider /wp-admin/options-general.php?page=wpss_settings_page3.2736.18

Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
wpss_basics
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Simple WP Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19014.85 ▲0.491.89 ▲0.2743.54 ▲0.20
Dashboard /wp-admin2,360 ▲1836.34 ▲0.79107.29 ▲21.6638.97 ▼3.08
Posts /wp-admin/edit.php2,288 ▲1853.50 ▲1.4748.63 ▲12.8134.23 ▼2.38
Add New Post /wp-admin/post-new.php1,545 ▲1923.38 ▲0.26589.69 ▼97.9433.19 ▼23.00
Media Library /wp-admin/upload.php1,425 ▲254.31 ▲0.1282.45 ▼10.2643.85 ▲2.91
Simple WP Slider /wp-admin/options-general.php?page=wpss_settings_page1,0373.5248.9324.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • wpss_basics
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("www.sungraizfaryad.com")
  • Screenshots: A description for screenshot #1 is required in simple-wp-slider/assets to your readme.txt
You can take inspiration from this readme.txt

simple-wp-slider/simple-wp-slider.php Passed 13 tests

"Simple WP Slider" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
This is a purpose oriented plugin which show slider using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,967 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3853722,151
PHP11177732682
CSS2145121
SVG11013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.12
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods59
▷ Static methods23.39%
▷ Public methods5186.44%
▷ Protected methods00.00%
▷ Private methods813.56%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.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
No PNG files were detected