79% blog-designer-pack

Code Review | News & Blog Designer Pack – WordPress Blog Plugin -- (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post Ticker, Blog Post Masonry)

WordPress plugin News & Blog Designer Pack – WordPress Blog Plugin -- (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post Ticker, Blog Post Masonry) scored79%from 54 tests.

About plugin

  • Plugin page: blog-designer-pack
  • Plugin version: 3.4.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2018
  • Latest release: Nov 15, 2023
  • Number of updates: 74
  • Update frequency: every 27.7 days
  • Top authors: pluginandplay (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

30,000+ active /427,084 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.23MB] [CPU: ▲23.89ms] 75% from 4 tests

Analyzing server-side resources used by News & Blog Designer Pack – WordPress Blog Plugin -- (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post Ticker, Blog Post Masonry)
The following require your attention
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.23MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.93 ▲5.4763.72 ▲26.95
Dashboard /wp-admin8.95 ▲5.6177.55 ▲15.81
Posts /wp-admin/edit.php8.95 ▲5.6083.25 ▲38.16
Add New Post /wp-admin/post-new.php10.13 ▲4.24114.16 ▲14.63
Media Library /wp-admin/upload.php8.95 ▲5.7274.57 ▲38.85
Shortcode Preview /wp-admin/admin.php?page=bdp-shortcode-preview8.9555.88
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9568.15

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 257 new files
Database: no new tables, 11 new options
New WordPress options
fs_accounts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_bdp_post_scrolling_widget
fs_debug_mode
widget_recent-posts
fs_active_plugins
widget_recent-comments
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for News & Blog Designer Pack – WordPress Blog Plugin -- (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post Ticker, Blog Post Masonry)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.21 ▼0.431.57 ▼0.1027.12 ▼16.29
Dashboard /wp-admin2,233 ▲595.60 ▲0.0993.56 ▼3.6043.71 ▼0.60
Posts /wp-admin/edit.php2,136 ▲362.01 ▲0.0640.89 ▼0.2139.22 ▲2.84
Add New Post /wp-admin/post-new.php1,546 ▲2022.66 ▼0.56625.75 ▼73.2557.73 ▲3.64
Media Library /wp-admin/upload.php1,438 ▲384.14 ▼0.0597.41 ▼20.1643.28 ▼6.08
Shortcode Preview /wp-admin/admin.php?page=bdp-shortcode-preview1321.5914.480.12
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0871.6626.1530.90

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/blog-designer-pack/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 11 options in the database
    • widget_theysaidso_widget
    • fs_accounts
    • fs_debug_mode
    • widget_bdp_post_scrolling_widget
    • widget_recent-posts
    • can_compress_scripts
    • fs_active_plugins
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • ...

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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: Please delete some tags, you are using 26 tag instead of maximum 10
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "News & Blog Designer Pack – WordPress Blog Plugin -- (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post Ticker, Blog Post Masonry)" version 3.4.3
115 characters long description:
Display blog posts on your website with 6 blog layouts (2 designs for each blog layout) plus 1 Ticker and 2 Widgets

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
Success! There were no dangerous files found in this plugin42,547 lines of code in 185 files:
LanguageFilesBlank linesComment linesLines of code
PHP1508,78718,10039,265
PO File87831,9752,008
JavaScript10186134730
CSS164085330
Markdown1680214

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.05
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes57
▷ Abstract classes23.51%
▷ Concrete classes5596.49%
▷ Final classes00.00%
Methods1,312
▷ Static methods19915.17%
▷ Public methods91269.51%
▷ Protected methods171.30%
▷ Private methods38329.19%
Functions137
▷ Named functions137100.00%
▷ Anonymous functions00.00%
Constants152
▷ Global constants10569.08%
▷ Class constants4730.92%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/getinstarted/timeline.png4.36KB0.45KB▼ 89.60%
assets/images/ticker-arrows.png1.42KB0.60KB▼ 57.85%
assets/images/getinstarted/carousel.png4.28KB0.54KB▼ 87.41%
assets/images/getinstarted/masonry.png4.51KB0.47KB▼ 89.66%
assets/images/getinstarted/list-alt.png3.16KB0.26KB▼ 91.80%