78% ultra-slideshow

Code Review | Ultra Slideshow

WordPress plugin Ultra Slideshow scored78%from 54 tests.

About plugin

  • Plugin page: ultra-slideshow
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Dec 23, 2020
  • Number of updates: 8
  • Update frequency: every 21.8 days
  • Top authors: ultradevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.23ms] Passed 4 tests

An overview of server-side resources used by Ultra Slideshow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.75 ▲2.96
Dashboard /wp-admin3.68 ▲0.3350.71 ▼12.95
Posts /wp-admin/edit.php3.73 ▲0.3755.44 ▲9.96
Add New Post /wp-admin/post-new.php6.20 ▲0.3182.89 ▼7.88
Media Library /wp-admin/upload.php3.51 ▲0.2937.46 ▲4.95
Slideshow /wp-admin/edit.php?post_type=ud_slideshow3.6541.33
Add New /wp-admin/post-new.php?post_type=ud_slideshow3.5745.77

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ultra Slideshow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,082 ▲33615.30 ▲0.507.62 ▲6.0142.88 ▲0.46
Dashboard /wp-admin2,398 ▲2106.46 ▲0.61125.58 ▲15.6442.06 ▼2.94
Posts /wp-admin/edit.php2,307 ▲2213.34 ▲1.2950.28 ▲12.4132.96 ▼1.55
Add New Post /wp-admin/post-new.php1,416 ▼12616.71 ▼1.38577.11 ▼39.0130.05 ▼23.23
Media Library /wp-admin/upload.php1,449 ▲614.20 ▼0.0382.14 ▼17.0843.10 ▲1.94
Slideshow /wp-admin/edit.php?post_type=ud_slideshow1,2843.3246.9729.00
Add New /wp-admin/post-new.php?post_type=ud_slideshow2,2703.7367.8236.93

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ultra-slideshow/ultra-slideshow.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=ud_slideshow
    • > Javascript (severe) in unknown
    /wp-content/plugins/ultra-slideshow/assets/admin/js/us-admin.js?ver=1.0.0 36:20 Uncaught TypeError: Cannot set properties of null (setting 'onchange')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: easy, sortable slider, slideshow, swiperjs, banner...

ultra-slideshow/ultra-slideshow.php 85% from 13 tests

The main PHP file in "Ultra Slideshow" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.2")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected32,139 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript92,6041,46429,104
PHP134658782,100
CSS42645626
Markdown1660181
Sass180107
JSON10021

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.32
Average class complexity20.30
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods106
▷ Static methods10.94%
▷ Public methods7267.92%
▷ Protected methods65.66%
▷ Private methods2826.42%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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