90% wp-blog-and-widgets

Code Review | WP Blog and Widgets

WordPress plugin WP Blog and Widgets scored90%from 54 tests.

About plugin

  • Plugin page: wp-blog-and-widgets
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 164
  • Update frequency: every 18.2 days
  • Top authors: anoopranawat (69.51%)wponlinesupport (31.1%)

Code review

54 tests

User reviews

26 reviews

Install metrics

10,000+ active /377,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.02ms] Passed 4 tests

Server-side resources used by WP Blog and Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1134.59 ▼7.05
Dashboard /wp-admin3.40 ▲0.0546.80 ▼16.25
Posts /wp-admin/edit.php3.52 ▲0.1649.79 ▲3.10
Add New Post /wp-admin/post-new.php6.13 ▲0.2494.98 ▼0.48
Media Library /wp-admin/upload.php3.32 ▲0.0934.36 ▼0.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: no new tables, 9 new options
New WordPress options
wpos_anylc_redirect
db_upgraded
widget_theysaidso_widget
widget_sp_blog_widget
theysaidso_admin_options
wpos_anylc_site_uid
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WP Blog and Widgets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,544 ▼1,20312.82 ▼1.321.50 ▼0.1917.94 ▼25.72
Dashboard /wp-admin2,218 ▲415.51 ▼0.0598.80 ▼4.4951.37 ▲8.71
Posts /wp-admin/edit.php2,125 ▲222.04 ▲0.0940.93 ▼2.0936.36 ▼3.42
Add New Post /wp-admin/post-new.php6,215 ▲4,68918.96 ▼4.17867.72 ▲179.7653.45 ▼1.70
Media Library /wp-admin/upload.php1,425 ▲254.20 ▲0.0196.98 ▼5.4440.06 ▼7.37

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_sp_blog_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • wpos_anylc_redirect
    • widget_recent-comments
    • can_compress_scripts
    • wpos_anylc_site_uid

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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 97% 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 require attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-blog-and-widgets/wp-blog-and-widgets.php Passed 13 tests

The principal PHP file in "WP Blog and Widgets" v. 2.6 is loaded by WordPress automatically on each request
98 characters long description:
Display Blog on your website with list and in grid view. Also work with Gutenberg shortcode block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,019 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP317119723,514
PO File79171,0222,156
CSS5237237
JavaScript44010110
JSON2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity17.33
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods48
▷ Static methods24.17%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
24 PNG files occupy 0.31MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/popup-icon/blog-grid.png4.67KB2.53KB▼ 45.73%
assets/images/SlidersPack-50.png6.48KB2.79KB▼ 56.91%
wpos-plugins/assets/images/inbound50-by-50.png2.09KB1.95KB▼ 6.78%
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
assets/images/popup-icon/popup-design.png7.53KB4.51KB▼ 40.14%