84% simple-fullscreen-responsive-slider

Code Review | Simple Fullscreen Responsive Slider

WordPress plugin Simple Fullscreen Responsive Slider scored84%from 54 tests.

About plugin

  • Plugin page: simple-fullscreen...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Jun 24, 2014
  • Latest release: Jun 14, 2015
  • Number of updates: 26
  • Update frequency: every 13.7 days
  • Top authors: chrisstephens (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /45,269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.27MB] [CPU: ▼23.58ms] Passed 4 tests

An overview of server-side resources used by Simple Fullscreen Responsive Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.82 ▼0.6819.09 ▼33.51
Dashboard /wp-admin3.35 ▲0.0048.23 ▼19.10
Posts /wp-admin/edit.php3.40 ▼0.4547.27 ▼13.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.14 ▼28.47
Media Library /wp-admin/upload.php3.27 ▲0.0436.48 ▲2.25
Add New /wp-admin/post-new.php?post_type=sfrs_slider3.4144.75
All Slides /wp-admin/edit.php?post_type=sfrs_slider3.3136.81
Simple Slider /wp-admin/options-general.php?page=sfrs-options3.2629.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple Fullscreen Responsive Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18413.83 ▼0.328.63 ▲6.6543.35 ▼7.94
Dashboard /wp-admin2,223 ▲465.58 ▼0.0993.33 ▼1.3743.51 ▼3.01
Posts /wp-admin/edit.php2,131 ▲281.97 ▲0.0134.56 ▼3.8431.26 ▼3.75
Add New Post /wp-admin/post-new.php1,562 ▲3522.87 ▼0.06677.70 ▼14.7155.71 ▼13.17
Media Library /wp-admin/upload.php1,431 ▲344.17 ▼0.03104.70 ▼11.3346.53 ▼4.11
Add New /wp-admin/post-new.php?post_type=sfrs_slider1,8763.8880.8445.75
All Slides /wp-admin/edit.php?post_type=sfrs_slider1,0951.9829.6529.97
Simple Slider /wp-admin/options-general.php?page=sfrs-options9412.1622.5330.46

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-fullscreen-responsive-slider/simple-slider-options.php:327
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-fullscreen-responsive-slider/simple-fullscreen-responsive-slider.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
  • Tested up to: Version format is invalid
You can look at the official readme.txt

simple-fullscreen-responsive-slider/simple-fullscreen-responsive-slider.php Passed 13 tests

"Simple Fullscreen Responsive Slider" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
A simple, white box, developer friendly plugin to create a fullscreen responsive slider.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected764 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3105198464
CSS100152
LESS1200146
JavaScript22182

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.00
▷ Minimum class complexity24.00
▷ Maximum class complexity28.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/overlay-scanlines-white.png0.17KB0.12KB▼ 30.41%
images/overlay-scanlines-black.png0.16KB0.11KB▼ 28.66%
images/overlay-grid-white.png0.17KB0.11KB▼ 34.71%
images/overlay-grid-black.png0.17KB0.10KB▼ 38.15%
images/overlay-dots-black.png0.16KB0.11KB▼ 31.90%