84% wpf-ultimate-carousel

Code Review | WpF Ultimate Carousel

WordPress plugin WpF Ultimate Carousel scored 84% from 54 tests.

About plugin

  • Plugin page: wpf-ultimate-caro...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2015
  • Latest release: Dec 25, 2016
  • Number of updates: 16
  • Update frequency: every 44.8 days
  • Top authors: antorjalalin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 8,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.05ms] Passed 4 tests

Analyzing server-side resources used by WpF Ultimate Carousel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.20 ▼4.01
Dashboard /wp-admin3.32 ▲0.0246.19 ▼3.21
Posts /wp-admin/edit.php3.37 ▲0.0247.14 ▲6.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.61 ▲4.29
Media Library /wp-admin/upload.php3.24 ▲0.0234.72 ▼1.26

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WpF Ultimate Carousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲18714.14 ▼0.225.18 ▲3.4441.30 ▼1.12
Dashboard /wp-admin2,215 ▲274.91 ▲0.0597.18 ▼5.3740.26 ▼4.27
Posts /wp-admin/edit.php2,098 ▲92.12 ▲0.0840.92 ▲3.5337.47 ▲3.86
Add New Post /wp-admin/post-new.php1,519 ▼1821.12 ▼2.02583.18 ▼65.7552.10 ▼5.99
Media Library /wp-admin/upload.php1,388 ▲34.35 ▲0.1895.80 ▼0.6243.69 ▼1.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpf-ultimate-carousel/wpf-ultimate-carousel.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: custom post carousel slider, post carousel slider, custom post slider, slider, carousel...

wpf-ultimate-carousel/wpf-ultimate-carousel.php 92% from 13 tests

"WpF Ultimate Carousel" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

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
Everything looks great! No dangerous files found in this plugin140 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1411375
CSS211551
SVG11013
JavaScript13141

PHP code Passed 2 tests

This is a very shot 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.09
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/200x150.png1.80KB0.43KB▼ 75.88%