10% wp-sequence-slider

Code Review | WP Sequence Slider

WordPress plugin WP Sequence Slider scored10%from 54 tests.

About plugin

  • Plugin page: wp-sequence-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Feb 25, 2014
  • Latest release: May 3, 2016
  • Number of updates: 21
  • Update frequency: every 38.1 days
  • Top authors: basantakumar (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

50+ active /7,828 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-sequence-slider/functions.php+8
    Constant SEQUENCE_PLUGIN_URL already defined

Server metrics [RAM: ▼1.90MB] [CPU: ▼64.11ms] Passed 4 tests

A check of server-side resources used by WP Sequence Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.375.61 ▼37.36
Dashboard /wp-admin2.12 ▼1.235.71 ▼56.06
Posts /wp-admin/edit.php2.12 ▼1.246.79 ▼42.67
Add New Post /wp-admin/post-new.php2.12 ▼3.774.94 ▼120.36
Media Library /wp-admin/upload.php2.12 ▼1.116.36 ▼35.21
Add New /wp-admin/post-new.php?post_type=sequence-slider2.126.46
All Sliders /wp-admin/edit.php?post_type=sequence-slider2.127.51
Slider Category /wp-admin/edit-tags.php?taxonomy=slider-category&post_type=sequence-slider2.126.89

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Sequence Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲16314.28 ▼0.105.95 ▲3.9943.35 ▲0.92
Dashboard /wp-admin2,252 ▲494.85 ▼0.02100.56 ▼16.0238.56 ▼2.27
Posts /wp-admin/edit.php2,131 ▲312.01 ▼0.0440.86 ▲2.1038.56 ▲1.10
Add New Post /wp-admin/post-new.php1,578 ▲4223.17 ▲0.09648.85 ▼50.2564.72 ▲0.36
Media Library /wp-admin/upload.php1,431 ▲314.27 ▲0.12112.38 ▼5.7148.41 ▼1.19
Add New /wp-admin/post-new.php?post_type=sequence-slider1,8653.8869.4032.41
All Sliders /wp-admin/edit.php?post_type=sequence-slider1,1091.9531.7034.06
Slider Category /wp-admin/edit-tags.php?taxonomy=slider-category&post_type=sequence-slider1,3052.1531.4633.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-sequence-slider/functions.php+8
    Constant SEQUENCE_PLUGIN_URL already defined
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=slider-category&post_type=sequence-slider
    • > Notice in wp-content/plugins/wp-sequence-slider/functions.php+8
    Constant SEQUENCE_PLUGIN_URL already defined
    • > GET request to /wp-admin/post-new.php?post_type=sequence-slider
    • > User notice in wp-includes/functions.php+5905
    Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)

SRP 50% from 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sequence-slider/functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-sequence-slider/sequence-slider.php:13
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-sequence-slider/functions.php on line 8
    • > PHP Warning
      Use of undefined constant SEQUENCE_PLUGIN_DIR - assumed 'SEQUENCE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-sequence-slider/functions.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-sequence-slider/sequence-slider.php 77% from 13 tests

The primary PHP file in "WP Sequence Slider" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-sequence-slider.php" instead of "sequence-slider.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected616 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS13719405
PHP25455197
JavaScript271914

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bt-prev.png0.74KB0.40KB▼ 45.92%
images/bt-next.png0.73KB0.39KB▼ 46.84%