73% ultimate-post-kit

Code Review | Ultimate Post Kit Addons For Elementor - (Post Grid, Post Carousel, Post Slider, Category List, Post Tabs, Timeline, Post Ticker, Tag Cloud)

WordPress plugin Ultimate Post Kit Addons For Elementor - (Post Grid, Post Carousel, Post Slider, Category List, Post Tabs, Timeline, Post Ticker, Tag Cloud) scored73%from 54 tests.

About plugin

  • Plugin page: ultimate-post-kit
  • Plugin version: 3.9.6
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Nov 29, 2023
  • Number of updates: 136
  • Update frequency: every 7.1 days
  • Top authors: bdthemes (66.91%)mohammaadfarid (33.82%)

Code review

54 tests

User reviews

26 reviews

Install metrics

20,000+ active /237,830 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
Installer ran successfully

Server metrics [RAM: ▲5.34MB] [CPU: ▲19.91ms] 75% from 4 tests

Server-side resources used by Ultimate Post Kit Addons For Elementor - (Post Grid, Post Carousel, Post Slider, Category List, Post Tabs, Timeline, Post Ticker, Tag Cloud)
Please take the time to fix the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.17 ▲5.7061.82 ▲19.35
Dashboard /wp-admin9.19 ▲5.8476.72 ▲7.03
Posts /wp-admin/edit.php9.19 ▲5.8382.69 ▲35.86
Add New Post /wp-admin/post-new.php9.87 ▲3.98112.75 ▲17.41
Media Library /wp-admin/upload.php9.19 ▲5.9675.04 ▲42.65
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.1962.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Post Kit Addons For Elementor - (Post Grid, Post Carousel, Post Slider, Category List, Post Tabs, Timeline, Post Ticker, Tag Cloud)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5714.71 ▲0.461.56 ▼0.6428.85 ▼14.48
Dashboard /wp-admin2,234 ▲575.68 ▲0.1095.54 ▼2.7946.91 ▲3.23
Posts /wp-admin/edit.php2,143 ▲432.14 ▲0.1441.73 ▲0.3540.41 ▲2.75
Add New Post /wp-admin/post-new.php1,550 ▲2423.01 ▼0.73705.38 ▲15.9556.10 ▼6.44
Media Library /wp-admin/upload.php1,439 ▲394.23 ▲0.04101.57 ▲5.6944.59 ▲3.39
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0851.6527.5229.09

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/ultimate-post-kit/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • fs_debug_mode
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • fs_active_plugins
    • widget_recent-comments
    • fs_accounts
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/ultimate-post-kit/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/ultimate-post-kit/admin/optimizer/vendor/matthiasmullie/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ultimate-post-kit/includes/helper.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/ultimate-post-kit/admin/optimizer/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/ultimate-post-kit/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'UltimatePostKit_Settings_API' not found in wp-content/plugins/ultimate-post-kit/admin/admin-settings.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-post-kit/includes/ultimate-post-kit-category-image.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ultimate_post_kit_option() in wp-content/plugins/ultimate-post-kit/includes/ultimate-post-kit-metabox.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/ultimate-post-kit/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/ultimate-post-kit/admin/optimizer/vendor/matthiasmullie/path-converter/src/Converter.php:19

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

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Ultimate Post Kit Intro), #2 (Most wanted features), #3 (Widget on or off options), #4 (Popular widget list), #5 (Alter Grid Example), #6 (Alice Grid Example), #7 (Kalon Grid Example), #8 (Hazel Grid Example), #9 (Harold Grid Example), #14 (Why you chooseultimate post kit), #15 (Our Others plugins)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

ultimate-post-kit/ultimate-post-kit.php 85% from 13 tests

The primary PHP file in "Ultimate Post Kit Addons For Elementor - (Post Grid, Post Carousel, Post Slider, Category List, Post Tabs, Timeline, Post Ticker, Tag Cloud)" version 3.9.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0.0" instead of "3.0.0")
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin166,772 lines of code in 550 files:
LanguageFilesBlank linesComment linesLines of code
PHP31217,29120,30292,946
CSS1204,81214640,996
JavaScript781,16225326,627
SVG314465,670
Markdown2890252
JSON400214
YAML21156
Dockerfile12011

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity34.88
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces109
Interfaces1
Traits3
Classes177
▷ Abstract classes84.52%
▷ Concrete classes16995.48%
▷ Final classes10.59%
Methods2,398
▷ Static methods24510.22%
▷ Public methods1,86077.56%
▷ Protected methods1456.05%
▷ Private methods39316.39%
Functions174
▷ Named functions14583.33%
▷ Anonymous functions2916.67%
Constants178
▷ Global constants12670.79%
▷ Class constants5229.21%
▷ Public constants52100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/ultimate-post-kit.png9.16KB5.26KB▼ 42.58%