84% home-slider

Code Review | home slider

WordPress plugin home slider scored84%from 54 tests.

About plugin

  • Plugin page: home-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2015
  • Latest release: Aug 13, 2015
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: amir32 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,609 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.66ms] Passed 4 tests

This is a short check of server-side resources used by home slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.54 ▲5.42
Dashboard /wp-admin3.39 ▲0.0546.63 ▼9.38
Posts /wp-admin/edit.php3.44 ▲0.0945.80 ▲1.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.61 ▼22.27
Media Library /wp-admin/upload.php3.32 ▲0.0935.28 ▼0.67
Animation /wp-admin/edit.php?post_type=home_slide&page=Animation3.2834.51
Controls /wp-admin/edit.php?post_type=home_slide&page=Controls3.2834.08
New Slide /wp-admin/post-new.php?post_type=home_slide3.4344.33
Behaviour /wp-admin/edit.php?post_type=home_slide&page=Behaviour3.2830.69
Captions /wp-admin/edit.php?post_type=home_slide&page=Captions3.2830.02
Setting /wp-admin/edit.php?post_type=home_slide&page=setting3.2831.71
Slides /wp-admin/edit.php?post_type=home_slide3.3632.92

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

Browser metrics Passed 4 tests

A check of browser resources used by home slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21113.73 ▼0.5610.39 ▲8.7541.15 ▲1.29
Dashboard /wp-admin2,241 ▲645.58 ▼0.0894.43 ▲7.8674.66 ▲31.84
Posts /wp-admin/edit.php2,149 ▲491.99 ▼0.0435.70 ▼0.6030.49 ▼1.27
Add New Post /wp-admin/post-new.php1,718 ▲19222.08 ▼1.03721.39 ▲47.0564.28 ▲13.97
Media Library /wp-admin/upload.php1,446 ▲494.18 ▼0.0894.08 ▼4.7470.31 ▲23.76
Animation /wp-admin/edit.php?post_type=home_slide&page=Animation1,2602.0023.2325.15
Controls /wp-admin/edit.php?post_type=home_slide&page=Controls1,1422.0123.7627.24
New Slide /wp-admin/post-new.php?post_type=home_slide2,2237.60160.97115.11
Behaviour /wp-admin/edit.php?post_type=home_slide&page=Behaviour9692.3022.7024.68
Captions /wp-admin/edit.php?post_type=home_slide&page=Captions9272.0023.8125.91
Setting /wp-admin/edit.php?post_type=home_slide&page=setting8702.0124.3025.67
Slides /wp-admin/edit.php?post_type=home_slide1,1101.9631.1629.00

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/home-slider/home-slider.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === home-slider === )
You can take inspiration from this readme.txt

home-slider/home-slider.php Passed 13 tests

This is the main PHP file of "home slider" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
free home slider for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin927 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP18275551
JavaScript4689267
CSS219899
Markdown14010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions14
▷ Named functions14100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/rhinoslider/img/rhinoslider-sprite.png7.29KB3.27KB▼ 55.15%