84% news-and-blog-designer-bundle

Code Review | News and Blog Designer Bundle

WordPress plugin News and Blog Designer Bundle scored84%from 54 tests.

About plugin

  • Plugin page: news-and-blog-des...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2020
  • Latest release: Jun 6, 2021
  • Number of updates: 21
  • Update frequency: every 15.9 days
  • Top authors: vaghasia3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 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.02MB] [CPU: ▼10.59ms] Passed 4 tests

Analyzing server-side resources used by News and Blog Designer Bundle
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.32 ▼3.10
Dashboard /wp-admin3.34 ▼0.0150.47 ▼12.75
Posts /wp-admin/edit.php3.39 ▲0.0350.56 ▲2.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.30 ▼27.68
Media Library /wp-admin/upload.php3.26 ▲0.0336.50 ▲1.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options
widget_wpoh-nbdb-widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_nbdb_post_slider_widget

Browser metrics Passed 4 tests

News and Blog Designer Bundle: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.20 ▼1.231.78 ▲0.1540.75 ▼1.75
Dashboard /wp-admin2,218 ▲334.87 ▼0.05108.37 ▲4.3341.26 ▼4.55
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0440.63 ▲1.7339.49 ▲4.85
Add New Post /wp-admin/post-new.php1,552 ▲2418.23 ▲0.23604.98 ▼46.7357.29 ▲2.74
Media Library /wp-admin/upload.php1,400 ▲124.24 ▼0.0193.26 ▼14.4444.50 ▼3.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_nbdb_post_slider_widget
    • widget_wpoh-nbdb-widget
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/news-and-blog-designer-bundle/view/nbdb-filter/template-1.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in news-and-blog-designer-bundle/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
You can take inspiration from this readme.txt

news-and-blog-designer-bundle/news-and-blog-designer-bundle.php Passed 13 tests

This is the main PHP file of "News and Blog Designer Bundle" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
Display Posts on your website with 8 layouts (2 designs for each layout) plus 1 Ticker and 2 Widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,656 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP252004812,654
JavaScript693335987
SVG100685
CSS3294330

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity56.50
▷ Minimum class complexity1.00
▷ Maximum class complexity255.00
Average method complexity14.32
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/ticker-arrows.png1.42KB0.60KB▼ 57.85%