84% post-carousel-for-dv-builder

Code Review | Post Carousel for DV Builder

WordPress plugin Post Carousel for DV Builder scored84%from 54 tests.

About plugin

  • Plugin page: post-carousel-for...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Mar 10, 2021
  • Number of updates: 20
  • Update frequency: every 29.4 days
  • Top authors: vaidfaiyaz (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /13,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.37ms] Passed 4 tests

A check of server-side resources used by Post Carousel for DV Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.96 ▼8.58
Dashboard /wp-admin3.32 ▲0.0150.13 ▼6.23
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▲1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.40 ▼5.21
Media Library /wp-admin/upload.php3.24 ▲0.0133.80 ▼1.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Post Carousel for DV Builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13213.87 ▼0.8612.12 ▲10.2440.29 ▼8.24
Dashboard /wp-admin2,211 ▲345.62 ▼0.0487.62 ▼10.1740.62 ▼3.32
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0639.77 ▲3.2236.11 ▲0.14
Add New Post /wp-admin/post-new.php1,537 ▲923.77 ▲0.72675.87 ▼48.0457.72 ▼3.58
Media Library /wp-admin/upload.php1,419 ▲254.21 ▼0.0696.75 ▲0.3740.84 ▼4.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-carousel-for-dv-builder/postcarousel.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module_Type_PostBased' not found in wp-content/plugins/post-carousel-for-dv-builder/includes/postcarousel.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: divi carousel, carousel, divi plugins, divi theme, post carousel for divi

post-carousel-for-dv-builder/postcarousel.php 85% from 13 tests

This is the main PHP file of "Post Carousel for DV Builder" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-carousel-for-dv-builder.php" instead of "postcarousel.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,267 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3106621,186
JavaScript20559
CSS20522

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity48.00
▷ Minimum class complexity4.00
▷ Maximum class complexity92.00
Average method complexity10.40
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin