78% home-page-slideshow

Code Review | Home Page Slideshow

WordPress plugin Home Page Slideshow scored78%from 54 tests.

About plugin

  • Plugin page: home-page-slideshow
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2014
  • Latest release: Oct 20, 2014
  • Number of updates: 4
  • Update frequency: every 20.0 days
  • Top authors: jethin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /14,716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.16ms] Passed 4 tests

A check of server-side resources used by Home Page Slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.42 ▼6.58
Dashboard /wp-admin3.38 ▲0.0348.55 ▼15.58
Posts /wp-admin/edit.php3.43 ▲0.0756.27 ▲8.00
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.65 ▼3.86
Media Library /wp-admin/upload.php3.30 ▲0.0739.30 ▲5.38
Home Slideshow /wp-admin/options-general.php?page=hss-settings-admin3.2734.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Home Page Slideshow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.321.72 ▼0.1345.15 ▲0.54
Dashboard /wp-admin2,213 ▲255.96 ▲0.15108.50 ▼9.3142.55 ▼5.40
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0540.94 ▲4.4336.00 ▲0.23
Add New Post /wp-admin/post-new.php1,517 ▼217.73 ▼5.49694.55 ▼2.6549.56 ▼16.81
Media Library /wp-admin/upload.php1,395 ▲74.18 ▲0.01101.92 ▲0.0446.82 ▼1.21
Home Slideshow /wp-admin/options-general.php?page=hss-settings-admin1,1883.1842.8329.59

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=hss-settings-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=hss-settings-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/home-page-slideshow/hss.php:194

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: front, slideshow, home, gallery, slider

home-page-slideshow/hss.php 92% from 13 tests

This is the main PHP file of "Home Page Slideshow" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("home-page-slideshow.php" instead of "hss.php")

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
Success! There were no dangerous files found in this plugin607 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP14424245
CSS2460190
JavaScript32613172

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.33
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin