68% show-sliders

Code Review | Weaver Show Sliders

WordPress plugin Weaver Show Sliders scored68%from 54 tests.

About plugin

  • Plugin page: show-sliders
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Apr 1, 2023
  • Number of updates: 33
  • Update frequency: every 101.5 days
  • Top authors: wpweaver (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /61,711 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.17MB] [CPU: ▼44.60ms] Passed 4 tests

Server-side resources used by Weaver Show Sliders
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.79 ▲0.49
Dashboard /wp-admin2.79 ▼0.5615.07 ▼37.31
Posts /wp-admin/edit.php2.79 ▼0.5716.26 ▼32.63
Add New Post /wp-admin/post-new.php2.79 ▼3.1015.46 ▼87.67
Media Library /wp-admin/upload.php2.79 ▼0.4414.81 ▼20.77
Show Slider Plugin /wp-admin/themes.php?page=install-atw-slider-addon2.7915.67

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Weaver Show Sliders
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9314.44 ▲0.051.81 ▼0.0740.38 ▼3.72
Dashboard /wp-admin2,239 ▲515.79 ▼0.11108.29 ▲2.8239.25 ▼3.05
Posts /wp-admin/edit.php2,139 ▲502.05 ▲0.0140.47 ▼0.6435.96 ▼0.15
Add New Post /wp-admin/post-new.php1,561 ▲1823.44 ▲4.92636.35 ▲20.0850.57 ▼2.06
Media Library /wp-admin/upload.php1,429 ▲414.23 ▲0.0299.93 ▼1.0343.19 ▼0.36
Show Slider Plugin /wp-admin/themes.php?page=install-atw-slider-addon9742.0926.8931.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-includes/formatting.php+1104
    Array to string conversion
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=install-atw-slider-addon
    • > Notice in wp-includes/formatting.php+1104
    Array to string conversion

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
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-sliders/includes/slider-widgets.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-sliders/atw-show-sliders.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/show-sliders/includes/class-tgm-plugin-activation.php:1917
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/show-sliders/includes/class-tgm-plugin-activation.php:1917

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: slider options, responsive slider, gallery, recent posts, slider shortcode...

show-sliders/atw-show-sliders.php 85% from 13 tests

The main PHP script in "Weaver Show Sliders" version 1.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("show-sliders.php" instead of "atw-show-sliders.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,106 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP81,1001,6833,601
JavaScript142945002,050
CSS410764548
HTML1100502
Markdown22270386
SVG10019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity40.12
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods98
▷ Static methods55.10%
▷ Public methods7879.59%
▷ Protected methods2020.41%
▷ Private methods00.00%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.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
38 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
flex/images/nav-5.png3.68KB0.23KB▼ 93.77%
flex/images/alt-nav-2.png2.37KB1.33KB▼ 43.68%
flex/images/nav-16.png1.18KB0.76KB▼ 35.76%
flex/images/nav-6.png0.73KB0.62KB▼ 14.88%
flex/images/nav-19.png1.06KB1.14KB0.00%