83% blog-designer

Code Review | Blog Designer

WordPress plugin Blog Designer scored83%from 54 tests.

About plugin

  • Plugin page: blog-designer
  • Plugin version: 3.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 104
  • Update frequency: every 29.7 days
  • Top authors: solwininfotech (100%)

Code review

54 tests

User reviews

168 reviews

Install metrics

20,000+ active /872,715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.19MB] [CPU: ▲3.00ms] Passed 4 tests

Server-side resources used by Blog Designer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.67 ▲1.2045.57 ▲2.23
Dashboard /wp-admin4.50 ▲1.1954.06 ▲4.00
Posts /wp-admin/edit.php4.61 ▲1.2556.06 ▲4.84
Add New Post /wp-admin/post-new.php7.08 ▲1.1995.26 ▲0.94
Media Library /wp-admin/upload.php4.42 ▲1.1945.63 ▲9.18
Getting Started /wp-admin/admin.php?page=bd_getting_started4.4744.02
Blog Designer Settings /wp-admin/admin.php?page=designer_settings4.4039.95

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 151 new files
Database: no new tables, 29 new options
New WordPress options
display_category
bd_version
can_compress_scripts
display_comment_count
widget_wp_blog_designer_scroll_widget
is_user_subscribed_cancled
widget_recent-posts
twitter_link
display_author
read_more_on
...

Browser metrics Passed 4 tests

Checking browser requirements for Blog Designer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,047 ▲28513.95 ▼0.3710.99 ▲9.3436.49 ▼7.66
Dashboard /wp-admin2,358 ▲1815.71 ▲0.1294.41 ▼2.8280.75 ▲30.80
Posts /wp-admin/edit.php2,270 ▲1702.19 ▲0.2337.00 ▼2.1932.91 ▼2.38
Add New Post /wp-admin/post-new.php6,519 ▲4,99327.76 ▲4.90936.60 ▲294.6041.76 ▼16.99
Media Library /wp-admin/upload.php1,568 ▲1684.30 ▲0.10103.29 ▲8.8343.51 ▼1.33
Getting Started /wp-admin/admin.php?page=bd_getting_started1,3393.7485.6678.63
Blog Designer Settings /wp-admin/admin.php?page=designer_settings1,0083.7083.6623.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 30 options
    • widget_wp_blog_designer_scroll_widget
    • theysaidso_admin_options
    • bd_is_optin
    • template_alternativebackground
    • bd_version
    • widget_recent-posts
    • content_fontsize
    • wp_blog_designer_settings
    • db_upgraded
    • excerpt_length
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/public/class-blog-designer-lite-public.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/includes/blog_designer_block/index.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/includes/promo-notice.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blog-designer/public/designer-css.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/admin/class-blog-designer-lite-admin.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 29 tag instead of maximum 10
You can look at the official readme.txt

blog-designer/blog-designer.php Passed 13 tests

"Blog Designer" version 3.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
To make your blog design more pretty, attractive and colorful.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin24,530 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS111,2822248,323
PHP171326258,196
JavaScript9176364,252
SVG40122,899
XML12716860

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 162)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity181.00
▷ Minimum class complexity30.00
▷ Maximum class complexity444.00
Average method complexity17.83
▷ Minimum method complexity1.00
▷ Maximum method complexity162.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods65
▷ Static methods2843.08%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.59MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/glyphicons-halflings.png13.50KB10.35KB▼ 23.34%
admin/images/navigation/navigation2.png0.25KB0.26KB0.00%
admin/css/chosen-sprite.png0.53KB0.88KB0.00%
admin/images/blog-designer-vc.png2.03KB1.17KB▼ 42.53%
admin/images/bdp-logo.png7.49KB4.24KB▼ 43.40%