84% wp-horizontal-slider

Code Review | WP Horizontal Slider

WordPress plugin WP Horizontal Slider scored84%from 54 tests.

About plugin

  • Plugin page: wp-horizontal-slider
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2011
  • Latest release: Oct 8, 2013
  • Number of updates: 9
  • Update frequency: every 80.3 days
  • Top authors: Subhransu Sekhar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by WP Horizontal Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.48 ▼3.82
Dashboard /wp-admin3.32 ▼0.0248.24 ▼19.12
Posts /wp-admin/edit.php3.37 ▲0.0252.33 ▼0.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.07 ▼11.73
Media Library /wp-admin/upload.php3.25 ▲0.0235.92 ▼0.68
WP Horizontal Slider /wp-admin/options-general.php?page=wphs_menu3.2230.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Horizontal Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.88 ▼0.709.16 ▲7.4041.50 ▲0.04
Dashboard /wp-admin2,203 ▲265.60 ▼0.0884.96 ▼13.6039.07 ▼4.01
Posts /wp-admin/edit.php2,111 ▲112.04 ▲0.0539.46 ▼1.2935.82 ▼2.17
Add New Post /wp-admin/post-new.php1,533 ▲723.24 ▲5.68662.87 ▼29.4456.79 ▲0.27
Media Library /wp-admin/upload.php1,411 ▲114.27 ▲0.03101.82 ▼16.9642.59 ▼6.79
WP Horizontal Slider /wp-admin/options-general.php?page=wphs_menu8332.0724.4226.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • wphs_post_type
    • widget_recent-posts
    • can_compress_scripts
    • wphs_category

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
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 add_theme_support() in wp-content/plugins/wp-horizontal-slider/wp-horizontal-slider.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-horizontal-slider === )
The official readme.txt is a good inspiration

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

"WP Horizontal Slider" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
A plugin that allows you to show the featured images of the available posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected148 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP122886
JavaScript110754
CSS12118

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions6
▷ Named functions6100.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 images were found in this plugin