73% wp-tools-divi-blog-carousel

Code Review | WP Tools Divi Blog Carousel

WordPress plugin WP Tools Divi Blog Carousel scored73%from 54 tests.

About plugin

  • Plugin page: wp-tools-divi-blo...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2019
  • Latest release: Aug 24, 2023
  • Number of updates: 12
  • Update frequency: every 124.0 days
  • Top authors: wpt00ls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,411 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.03MB] [CPU: ▲21.63ms] 75% from 4 tests

Server-side resources used by WP Tools Divi Blog Carousel
The following require your attention
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.92 ▲5.4662.80 ▲17.88
Dashboard /wp-admin8.94 ▲5.6078.84 ▲14.24
Posts /wp-admin/edit.php8.95 ▲5.5982.79 ▲31.17
Add New Post /wp-admin/post-new.php9.34 ▲3.45124.64 ▲23.24
Media Library /wp-admin/upload.php8.94 ▲5.7274.20 ▲35.51
Divi Blog Carousel /wp-admin/admin.php?page=wp-tools-divi-blog-carousel8.9562.97
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9560.87

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Tools Divi Blog Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.23 ▼1.211.51 ▼0.5332.47 ▼13.05
Dashboard /wp-admin2,227 ▲425.85 ▼0.0198.96 ▼13.7943.16 ▲5.13
Posts /wp-admin/edit.php2,110 ▲212.00 ▼0.0638.78 ▲2.2338.97 ▲2.99
Add New Post /wp-admin/post-new.php1,519 ▼1422.24 ▼0.78660.11 ▼15.8758.24 ▲4.90
Media Library /wp-admin/upload.php1,406 ▲184.20 ▼0.02102.26 ▼20.8843.01 ▼5.40
Divi Blog Carousel /wp-admin/admin.php?page=wp-tools-divi-blog-carousel9751.6828.2959.46
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0781.7023.5229.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-tools-divi-blog-carousel/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wp-tools-divi-blog-carousel/includes/modules/DiviCarouselBlogItemModule/DiviCarouselBlogItemModule.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-tools-divi-blog-carousel/resources/views/wptools-divi-carousel-blogs.php:1
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/wp-tools-divi-blog-carousel/vendor/pimple/pimple/src/Pimple/Psr11/Container.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-tools-divi-blog-carousel/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wp-tools-divi-blog-carousel/includes/modules/DiviBlogCarouselModule/DiviBlogCarouselModule.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/wp-tools-divi-blog-carousel/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/wp-tools-divi-blog-carousel/includes/modules/DiviBlogCarouselExtension.php:6
    • > PHP Notice
      Undefined variable: module_classes in wp-content/plugins/wp-tools-divi-blog-carousel/resources/views/wptools-divi-carousel-blogs.php on line 1
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-tools-divi-blog-carousel/vendor/psr/container/src/NotFoundExceptionInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Pimple\\Container' not found in wp-content/plugins/wp-tools-divi-blog-carousel/src/Loader.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: divi module, divi, image carousel

wp-tools-divi-blog-carousel/wp-tools-divi-blog-carousel.php 92% from 13 tests

"WP Tools Divi Blog Carousel" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected37,836 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
PHP1528,28618,19334,396
JavaScript108901232,365
CSS16475306
Sass2275262
JSON300174
LESS1115152
reStructuredText19613997
YAML17139
XML12016
SVG11013
Markdown1508
Ruby1208

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity64.36
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces12
Interfaces4
Traits0
Classes68
▷ Abstract classes22.94%
▷ Concrete classes6697.06%
▷ Final classes23.03%
Methods1,369
▷ Static methods21615.78%
▷ Public methods97771.37%
▷ Protected methods181.31%
▷ Private methods37427.32%
Functions109
▷ Named functions10091.74%
▷ Anonymous functions98.26%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/wp-tools-divi-blog-carousel.png5.38KB3.05KB▼ 43.34%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%