82% blog-designer-for-elementor

Code Review | Blog Designer For Elementor

WordPress plugin Blog Designer For Elementor scored82%from 54 tests.

About plugin

  • Plugin page: blog-designer-for...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Sep 4, 2023
  • Number of updates: 19
  • Update frequency: every 67.0 days
  • Top authors: mdimran41 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

6,000+ active /56,500 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.77ms] Passed 4 tests

This is a short check of server-side resources used by Blog Designer For Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.64 ▼2.28
Dashboard /wp-admin3.42 ▲0.1150.34 ▼2.60
Posts /wp-admin/edit.php3.53 ▲0.1751.59 ▲3.43
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.81 ▼11.45
Media Library /wp-admin/upload.php3.34 ▲0.1138.83 ▲1.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_aboutme_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Blog Designer For Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.53 ▼0.691.59 ▼0.1647.68 ▲9.63
Dashboard /wp-admin2,240 ▲554.86 ▼1.00109.14 ▲9.5940.96 ▼4.05
Posts /wp-admin/edit.php2,123 ▲342.04 ▼0.0341.40 ▲3.2436.31 ▼1.35
Add New Post /wp-admin/post-new.php1,542 ▲1423.09 ▼0.41662.69 ▲7.1061.50 ▲11.18
Media Library /wp-admin/upload.php1,423 ▲324.25 ▲0.0098.19 ▼14.2147.61 ▼5.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_aboutme_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer-for-elementor/inc/admin/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/blog-designer-for-elementor/bdfe.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/blog-designer-for-elementor/widgets/hero-slider.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/blog-designer-for-elementor/template-parts/normal-post.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer-for-elementor/inc/admin/admin-notice.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Gamajo_Template_Loader' not found in wp-content/plugins/blog-designer-for-elementor/bdfe-template-loader.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/blog-designer-for-elementor/widgets/post-layouts.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blog-designer-for-elementor/widgets/about-me.php:3

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

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (30 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in blog-designer-for-elementor/assets to your readme.txt
The official readme.txt might help

blog-designer-for-elementor/bdfe.php 62% from 13 tests

The entry point to "Blog Designer For Elementor" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("blog-designer-for-elementor.php" instead of "bdfe.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin24,557 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,061
CSS32,418197,392
Sass628134,166
PHP102114953,517
JavaScript42214421

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity17.33
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods48
▷ Static methods12.08%
▷ Public methods3572.92%
▷ Protected methods714.58%
▷ Private methods612.50%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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.25MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/admin/img/blog-starter.png261.00KB91.63KB▼ 64.89%