68% coneblog-widgets

Code Review | ConeBlog - Elementor Blog Widgets & Shortcodes

WordPress plugin ConeBlog - Elementor Blog Widgets & Shortcodes scored68%from 54 tests.

About plugin

  • Plugin page: coneblog-widgets
  • Plugin version: 1.4.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Oct 3, 2023
  • Number of updates: 52
  • Update frequency: every 17.5 days
  • Top authors: mianshahzadraza (63.46%)wpconedev (38.46%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /19,913 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.62MB] [CPU: ▼5.09ms] Passed 4 tests

Analyzing server-side resources used by ConeBlog - Elementor Blog Widgets & Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6245.21 ▼0.20
Dashboard /wp-admin3.96 ▲0.6152.52 ▼9.08
Posts /wp-admin/edit.php4.01 ▲0.6554.72 ▲1.34
Add New Post /wp-admin/post-new.php6.48 ▲0.5990.37 ▼12.41
Media Library /wp-admin/upload.php3.86 ▲0.6345.75 ▲5.42
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius4.0740.09

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 265 new files
Database: no new tables, 31 new options
New WordPress options
coneblog_tools_social_sharing_facebook
coneblog_widgets_posts_slider
widget_recent-comments
coneblog_tools_social_sharing_style
widget_theysaidso_widget
coneblog_tools_social_sharing_content_position
coneblog_tools_social_sharing_reddit
theysaidso_admin_options
fs_active_plugins
coneblog_tools_social_sharing_linkedin
...

Browser metrics Passed 4 tests

An overview of browser requirements for ConeBlog - Elementor Blog Widgets & Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲23213.51 ▼1.118.29 ▲6.1239.63 ▼8.32
Dashboard /wp-admin2,280 ▲1035.61 ▼0.0489.75 ▲1.6242.88 ▲2.27
Posts /wp-admin/edit.php2,189 ▲892.16 ▲0.0539.52 ▲1.7840.08 ▲5.59
Add New Post /wp-admin/post-new.php1,554 ▲1823.32 ▲0.12689.63 ▼12.6066.52 ▲1.68
Media Library /wp-admin/upload.php1,488 ▲884.16 ▲0.03112.54 ▼5.6951.04 ▲2.25
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1251.8531.9530.53

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/coneblog-widgets/inc/frameworks/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 31 options
    • coneblog_widgets_posts_grid
    • coneblog_tools_social_sharing
    • coneblog_widgets_posts_classic
    • can_compress_scripts
    • coneblog_tools_social_sharing_desktop_position
    • coneblog_tools_social_sharing_pinterest
    • widget_theysaidso_widget
    • coneblog_tools_social_sharing_mail
    • coneblog_widgets_author_box
    • coneblog_widgets_posts_list
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/coneblog-widgets/widgets/elementor/includes/author_box/layout-2.php
  • 80× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/default.php on line 28
    • > PHP Notice
      Undefined variable: category_url in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/layout-2.php on line 44
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/coneblog-widgets/widgets/elementor/includes/author_box/layout-2.php on line 9
    • > PHP Notice
      Undefined variable: layout in wp-content/plugins/coneblog-widgets/widgets/elementor/includes/author_box/layout-2.php on line 9
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/default.php on line 28
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/default.php on line 28
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/default.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/layout-2.php:49
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/layout-1.php on line 29
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/coneblog-widgets/templates/Category_Tiles/default.php on line 43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: coneblog, gutenberg, blog, blog widgets, elementor

coneblog-widgets/coneblog-widgets.php Passed 13 tests

The primary PHP file in "ConeBlog - Elementor Blog Widgets & Shortcodes" version 1.4.8 is used by WordPress to initiate all plugin functionality
67 characters long description:
Beautiful Blog widgets for WordPress, Elementor, and Page Builders.

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected50,616 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
PHP1438,43318,53640,794
CSS374132107,326
JavaScript75241,0232,228
Markdown1680214
SVG126038
XML13016

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity78.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes11.72%
Methods1,355
▷ Static methods21215.65%
▷ Public methods94869.96%
▷ Protected methods332.44%
▷ Private methods37427.60%
Functions135
▷ Named functions13499.26%
▷ Anonymous functions10.74%
Constants152
▷ Global constants10267.11%
▷ Class constants5032.89%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
25 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin_icons/forums.png7.79KB2.81KB▼ 63.91%
inc/frameworks/freemius/assets/img/coneblog-widgets.png4.05KB2.22KB▼ 45.27%
assets/img/avatar.png9.59KB4.57KB▼ 52.41%
assets/img/thumb-carousel.png4.33KB1.56KB▼ 63.96%
assets/img/thumb-square-small.png3.75KB1.56KB▼ 58.31%