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

Code Review | Blog Designer - Post and Widget

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

About plugin

  • Plugin page: blog-designer-for...
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 102
  • Update frequency: every 25.4 days
  • Top authors: anoopranawat (53.92%)wponlinesupport (47.06%)

Code review

54 tests

User reviews

23 reviews

Install metrics

7,000+ active /216,874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▲0.95ms] Passed 4 tests

Analyzing server-side resources used by Blog Designer - Post and Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3638.76 ▲1.82
Dashboard /wp-admin3.79 ▲0.4850.43 ▼2.11
Posts /wp-admin/edit.php3.84 ▲0.4853.37 ▲3.65
Add New Post /wp-admin/post-new.php6.34 ▲0.4598.45 ▲0.43
Media Library /wp-admin/upload.php3.65 ▲0.4239.78 ▲5.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 80 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_wpspw_pro_post_thumb_widget
wpos_anylc_site_uid
theysaidso_admin_options
wpos_anylc_redirect
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Blog Designer - Post and Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,544 ▼1,21810.60 ▼3.761.46 ▼0.3917.59 ▼22.31
Dashboard /wp-admin2,222 ▲455.61 ▼0.0598.26 ▲2.8949.77 ▲6.91
Posts /wp-admin/edit.php2,123 ▲201.98 ▲0.0240.31 ▲1.3934.52 ▼0.74
Add New Post /wp-admin/post-new.php6,218 ▲4,69119.18 ▼3.91926.69 ▲270.1170.66 ▲9.27
Media Library /wp-admin/upload.php1,423 ▲294.17 ▼0.0496.69 ▼2.5439.35 ▼2.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_wpspw_pro_post_thumb_widget
    • wpos_anylc_redirect
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • wpos_anylc_site_uid
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

The principal PHP file in "Blog Designer - Post and Widget" v. 2.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,289 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP337429893,595
JavaScript712467368
CSS64518324
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.50
Average class complexity17.11
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods46
▷ Static methods24.35%
▷ Public methods4291.30%
▷ Protected methods00.00%
▷ Private methods48.70%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.52MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/popup-icon/popup-design.png7.53KB4.51KB▼ 40.14%
assets/images/arrow-left.png0.43KB0.22KB▼ 49.43%
wpos-plugins/assets/images/inbound50-by-50.png2.09KB1.95KB▼ 6.78%
assets/images/wpos-team.png171.41KB48.35KB▼ 71.79%
wpos-plugins/assets/images/essential-plugin-16.png0.46KB0.66KB0.00%