84% ultimate-wp-slider

Code Review | Ultimate WP Slider

WordPress plugin Ultimate WP Slider scored 84% from 54 tests.

About plugin

  • Plugin page: ultimate-wp-slider
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Jan 13, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: certainity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.13ms] Passed 4 tests

A check of server-side resources used by Ultimate WP Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.12 ▲1.71
Dashboard /wp-admin3.36 ▲0.0542.49 ▼5.44
Posts /wp-admin/edit.php3.47 ▲0.1246.12 ▼2.48
Add New Post /wp-admin/post-new.php6.00 ▲0.1191.77 ▲1.69
Media Library /wp-admin/upload.php3.28 ▲0.0535.61 ▲3.24
Ultimate WP Slider /wp-admin/admin.php?page=ultimate_wp_slider_admin3.2830.94
Manage Slides /wp-admin/edit.php?post_type=ultimate-wp-slider3.3336.10
Add New Slide /wp-admin/post-new.php?post_type=ultimate-wp-slider5.9881.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate WP Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10214.47 ▲0.181.70 ▼0.1142.22 ▼9.38
Dashboard /wp-admin2,240 ▲524.86 ▼0.93107.15 ▼11.1743.26 ▼4.67
Posts /wp-admin/edit.php2,126 ▲371.99 ▼0.0341.41 ▲2.7834.43 ▲0.32
Add New Post /wp-admin/post-new.php1,561 ▲4723.11 ▲5.57626.68 ▼54.6858.56 ▲5.67
Media Library /wp-admin/upload.php1,419 ▲314.20 ▼0.1098.69 ▼3.2542.93 ▼2.04
Ultimate WP Slider /wp-admin/admin.php?page=ultimate_wp_slider_admin8172.0323.8927.42
Manage Slides /wp-admin/edit.php?post_type=ultimate-wp-slider1,1221.9431.4031.47
Add New Slide /wp-admin/post-new.php?post_type=ultimate-wp-slider6,49022.89816.8833.91

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ultimate-wp-slider/views/ultimate-wp-slider_metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-wp-slider/views/settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-wp-slider/views/ultimate-wp-slider_shortcode.php:1

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
2 plugin tags: slider, wp slider

ultimate-wp-slider/ultimate-wp-slider.php 92% from 13 tests

The entry point to "Ultimate WP Slider" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)

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
Good job! No executable or dangerous file extensions detected937 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP98228498
CSS32430345
PO File1232665
SVG10019
JavaScript20410

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.50
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected