90% feslider

Code Review | Feslider - Featured Slider

WordPress plugin Feslider - Featured Slider scored 90% from 54 tests.

About plugin

  • Plugin page: feslider
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Feb 15, 2023
  • Number of updates: 12
  • Update frequency: every 189.2 days
  • Top authors: harisrozak (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 3,526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Feslider - Featured Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.05 ▼4.31
Dashboard /wp-admin3.32 ▲0.0244.52 ▼2.48
Posts /wp-admin/edit.php3.37 ▲0.0249.30 ▼7.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.99 ▼10.13
Media Library /wp-admin/upload.php3.25 ▲0.0232.79 ▼0.98

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

Browser metrics Passed 4 tests

An overview of browser requirements for Feslider - Featured Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲21913.62 ▼0.969.45 ▲7.7842.59 ▲1.63
Dashboard /wp-admin2,219 ▲315.83 ▲0.71101.40 ▼1.1137.52 ▼5.85
Posts /wp-admin/edit.php2,108 ▲162.05 ▲0.0039.37 ▼2.0536.13 ▼5.76
Add New Post /wp-admin/post-new.php6,537 ▲5,02320.33 ▲2.88830.17 ▲146.5038.11 ▼27.09
Media Library /wp-admin/upload.php1,398 ▲74.23 ▲0.0395.49 ▼7.1842.57 ▼3.20

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 uses markdown syntax to describe your plugin to the world
10 plugin tags: responsive slider, slideshow, featured image, featured slideshow, slider...

feslider/feslider.php Passed 13 tests

The principal PHP file in "Feslider - Featured Slider" v. 1.3 is loaded by WordPress automatically on each request
52 characters long description:
It's like a featured image, but more, it's a slider!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected5,428 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,3229773,924
CSS515446858
PHP717957646

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 images were found in this plugin