83% ultimate-post-slider

Code Review | Ultimate Post Slider Widget

WordPress plugin Ultimate Post Slider Widget scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-post-slider
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Jan 30, 2018
  • Number of updates: 12
  • Update frequency: every 71.8 days
  • Top authors: Pieter Ferrreira (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

200+ active /11,634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.37ms] Passed 4 tests

A check of server-side resources used by Ultimate Post Slider Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.13 ▼2.15
Dashboard /wp-admin3.45 ▲0.1552.27 ▼3.58
Posts /wp-admin/edit.php3.50 ▲0.1549.26 ▼5.92
Add New Post /wp-admin/post-new.php6.05 ▲0.17101.14 ▲4.25
Media Library /wp-admin/upload.php3.38 ▲0.1535.97 ▲2.17

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_ups_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Post Slider Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.24 ▼1.406.73 ▲5.0343.36 ▲3.93
Dashboard /wp-admin2,210 ▲194.85 ▼1.05101.62 ▼5.3338.64 ▼5.02
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0136.11 ▼6.5234.93 ▼2.14
Add New Post /wp-admin/post-new.php1,527 ▼118.81 ▲0.74603.51 ▼13.2752.58 ▲3.30
Media Library /wp-admin/upload.php1,386 ▼24.21 ▼0.0395.56 ▼13.1042.91 ▲0.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_ups_widget
    • can_compress_scripts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-post-slider/ultimate-post-slider.php:17

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 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ultimate-post-slider === )
  • Screenshots: These screenshots do not have images: #1 (General Options), #2 (Ordering / Display Options), #3 (Sliding Options), #4 (Formatting Options), #5 (Example with TwentyFifteen theme with the default widget options)
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

ultimate-post-slider/ultimate-post-slider.php Passed 13 tests

The entry point to "Ultimate Post Slider Widget" version 2.0.0 is a PHP file that has certain tags in its header comment area
95 characters long description:
A Post Slider Widget built around what you need to do, with lots of functions and more to come.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,160 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61366301,098
PHP18934720
CSS34523253
Markdown142089

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity15.00
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png52.47KB17.83KB▼ 66.02%
screenshot-2.png37.47KB14.06KB▼ 62.48%
third-party/jquery.bxslider/images/controls.png2.74KB1.42KB▼ 48.29%