90% storefront-add-slider

Code Review | Storefront Add Slider

WordPress plugin Storefront Add Slider scored90%from 54 tests.

About plugin

  • Plugin page: storefront-add-sl...
  • Plugin version: 0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Sep 27, 2017
  • Number of updates: 10
  • Update frequency: every 47.5 days
  • Top authors: pangolin.themes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /32,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.56ms] Passed 4 tests

This is a short check of server-side resources used by Storefront Add Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.35 ▼7.96
Dashboard /wp-admin3.32 ▲0.0240.08 ▼13.18
Posts /wp-admin/edit.php3.37 ▲0.0143.58 ▼1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0184.99 ▼7.56
Media Library /wp-admin/upload.php3.25 ▲0.0137.20 ▲5.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Storefront Add Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.185.19 ▲3.3043.22 ▼3.91
Dashboard /wp-admin2,209 ▲304.96 ▼0.90113.16 ▼3.5442.74 ▼7.86
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0338.09 ▼1.9235.84 ▲1.18
Add New Post /wp-admin/post-new.php1,538 ▲523.05 ▼0.00658.09 ▼33.7355.56 ▼9.58
Media Library /wp-admin/upload.php1,391 ▼04.12 ▼0.10104.22 ▲4.6144.33 ▲0.92

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: ecommerce, slider, storefront, hero, woocommerce

storefront-add-slider/storefront-add-slider.php Passed 13 tests

This is the main PHP file of "Storefront Add Slider" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Lets you add any slider shortcode to your Storefront theme Frontpage.

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
No dangerous file extensions were detected82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192782

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity3.00
▷ Minimum method complexity3.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin