89% blog-designer-for-post-and-widget

Code Review | Blog Designer - Post and Widget

WordPress plugin Blog Designer - Post and Widget scored 89% from 54 tests.

About plugin

  • Plugin page: blog-designer-for...
  • Plugin version: 2.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Oct 22, 2016
  • Latest release: Mar 30, 2022
  • Number of updates: 90
  • Update frequency: every 22.1 days
  • Top authors: anoopranawat (61.11%)wponlinesupport (40%)

Code review

54 tests

User reviews

23 reviews

Install metrics

9,000+ active / 171,781 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.42MB] [CPU: ▼316.14ms] 75% from 4 tests

This is a short check of server-side resources used by Blog Designer - Post and Widget
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 790.23ms on /wp-admin/admin.php?page=bdpw-espbw-dashboard)
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4172.06 ▲4.78
Dashboard /wp-admin3.84 ▲0.4340.18 ▼1.37
Posts /wp-admin/edit.php4.07 ▲0.4353.25 ▼28.92
Add New Post /wp-admin/post-new.php7.37 ▲0.40121.87 ▼1,239.03
Media Library /wp-admin/upload.php3.78 ▲0.4952.05 ▲17.34
Solutions & Features /wp-admin/admin.php?page=bdpw-solutions-features3.7234.75
Upgrade To Premium /wp-admin/admin.php?page=bdpw-premium3.7632.76
Blog Designer /wp-admin/admin.php?page=bdpw-about3.7539.20
Install Popular Plugins From WPOS /wp-admin/admin.php?page=bdpw-espbw-dashboard4.13790.23

Server storage [IO: ▲0.71MB] [DB: ▲0.05MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 2 new options
New WordPress options
wpos_anylc_redirect
widget_wpspw_pro_post_thumb_widget

Browser metrics Passed 4 tests

A check of browser resources used by Blog Designer - Post and Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,876 ▲12116.46 ▲1.0511.70 ▲1.692.92 ▼0.96
Dashboard /wp-admin2,997 ▲786.41 ▲0.04187.35 ▼56.17193.37 ▼12.44
Posts /wp-admin/edit.php2,742 ▲243.44 ▲0.0287.64 ▼28.98172.38 ▼59.55
Add New Post /wp-admin/post-new.php1,773 ▲11119.36 ▲3.45456.18 ▼240.39202.40 ▼4.24
Media Library /wp-admin/upload.php1,754 ▲245.73 ▼0.00183.82 ▼8.44254.90 ▲5.33
Solutions & Features /wp-admin/admin.php?page=bdpw-solutions-features1,8752.6172.85259.96
Upgrade To Premium /wp-admin/admin.php?page=bdpw-premium1,8002.6874.39194.19
Blog Designer /wp-admin/admin.php?page=bdpw-about1,8542.6473.39244.66
Install Popular Plugins From WPOS /wp-admin/admin.php?page=bdpw-espbw-dashboard5,9323.4588.30267.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% 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
  • The uninstall procedure has failed, leaving 2 options in the database
    • wpos_anylc_redirect
    • widget_wpspw_pro_post_thumb_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

blog-designer-for-post-and-widget/blog-designer-post-and-widget.php 92% from 13 tests

The main file in "Blog Designer - Post and Widget" v. 2.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blog-designer-for-post-and-widget.php" instead of "blog-designer-post-and-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,556 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP286909773,552
PO File1154162356
JavaScript710743329
CSS63818317
JSON2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity15.67
▷ Minimum class complexity3.00
▷ Maximum class complexity80.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods50
▷ Static methods24.00%
▷ Public methods4692.00%
▷ Protected methods00.00%
▷ Private methods48.00%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/utility-50.png1.64KB0.82KB▼ 50.30%
assets/images/inboundwp-50.png3.19KB1.95KB▼ 38.90%
wpos-plugins/assets/images/utility-icon.png0.72KB0.82KB0.00%
assets/images/vc-icon.png5.24KB1.92KB▼ 63.42%
assets/images/site-origin-icon.png6.21KB2.48KB▼ 60.12%