78% simple-text-slider

Code Review | Simple Text Slider

WordPress plugin Simple Text Slider scored78%from 54 tests.

About plugin

  • Plugin page: simple-text-slider
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6
  • WordPress version: 6.3.1
  • First release: Aug 20, 2016
  • Latest release: Oct 31, 2016
  • Number of updates: 33
  • Update frequency: every 2.2 days
  • Top authors: w1zzard (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /3,596 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.93ms] Passed 4 tests

An overview of server-side resources used by Simple Text Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.76 ▼6.66
Dashboard /wp-admin3.32 ▲0.0147.72 ▼0.04
Posts /wp-admin/edit.php3.37 ▲0.0148.29 ▼5.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.05 ▼7.42
Media Library /wp-admin/upload.php3.24 ▲0.0137.41 ▲2.04
Simple Text Slider /wp-admin/options-general.php?page=simple_text_slider3.1929.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Text Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16315.19 ▲0.8229.98 ▲27.9341.41 ▼2.76
Dashboard /wp-admin2,233 ▲455.04 ▼0.84111.58 ▼9.2441.80 ▼0.04
Posts /wp-admin/edit.php2,121 ▲322.31 ▲0.3343.71 ▲3.7434.63 ▼2.78
Add New Post /wp-admin/post-new.php1,551 ▲1818.43 ▼4.65602.19 ▲6.1938.44 ▼17.79
Media Library /wp-admin/upload.php1,415 ▲244.50 ▲0.2798.44 ▲3.3939.81 ▼0.73
Simple Text Slider /wp-admin/options-general.php?page=simple_text_slider1,2272.6056.2032.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple_text_slider
    • > Notice in wp-content/plugins/simple-text-slider/inc/interface.php+92
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-text-slider/simple-text-slider.php
    • > /wp-content/plugins/simple-text-slider/inc/interface.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (A slider. Nice!), #2 (Options.)
Please take inspiration from this readme.txt

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

The main PHP script in "Simple Text Slider" version 1.0.5 is automatically included on every request by WordPress
82 characters long description:
Adds a simple shortcode to output serveral vertical text slider wherever you want.

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
There were no executable files found in this plugin506 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47477197
PHP24528182
CSS2193127

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Namespaces0
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
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
2 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/transparency-grid.png2.58KB2.80KB0.00%
screenshot-1.png156.96KB28.93KB▼ 81.57%