83% ih-sliders-showcases

Code Review | IH Sliders & Showcases

WordPress plugin IH Sliders & Showcases scored 83% from 54 tests.

About plugin

  • Plugin page: ih-sliders-showcases
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Sep 21, 2017
  • Number of updates: 5
  • Update frequency: every 9.8 days
  • Top authors: InkHive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,251 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.06ms] Passed 4 tests

Server-side resources used by IH Sliders & Showcases
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.71 ▲0.43
Dashboard /wp-admin3.42 ▲0.1246.99 ▼7.72
Posts /wp-admin/edit.php3.54 ▲0.1849.55 ▲1.26
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.00 ▼18.22
Media Library /wp-admin/upload.php3.35 ▲0.1238.20 ▲6.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for IH Sliders & Showcases
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.47 ▼0.151.78 ▲0.0143.03 ▼3.40
Dashboard /wp-admin2,218 ▲305.81 ▲0.95108.27 ▼9.9637.80 ▼6.07
Posts /wp-admin/edit.php2,107 ▲182.03 ▲0.0041.25 ▲3.2836.83 ▲0.83
Add New Post /wp-admin/post-new.php1,541 ▲822.94 ▼0.24653.44 ▲30.9153.24 ▲1.19
Media Library /wp-admin/upload.php1,403 ▲184.21 ▲0.0497.32 ▼2.1043.79 ▲0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • 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 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'IHSS' not found in wp-content/plugins/ih-sliders-showcases/sections/parallax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ih-sliders-showcases/style.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'IHSS' not found in wp-content/plugins/ih-sliders-showcases/sections/testimonials.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'IHSS' not found in wp-content/plugins/ih-sliders-showcases/sections/slider.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'IHSS' not found in wp-content/plugins/ih-sliders-showcases/sections/counters.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'IHSS' not found in wp-content/plugins/ih-sliders-showcases/sections/showcase.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'IHSS' not found in wp-content/plugins/ih-sliders-showcases/sections/team.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ih-sliders-showcases/ih-slider-showcase.php:25

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 90% from 29 tests

readme.txt 88% 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 to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in ih-sliders-showcases/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === ih-sliders-showcases === )
You can look at the official readme.txt

ih-sliders-showcases/ih-slider-showcase.php 92% from 13 tests

The main PHP file in "IH Sliders & Showcases" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ih-sliders-showcases.php" instead of "ih-slider-showcase.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin929 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP821032899
CSS16030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.14
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin