10% bdwebteam-recent-post-tabs-widget

Code Review | bdwebteam recent post tabs widget

WordPress plugin bdwebteam recent post tabs widget scored10%from 54 tests.

About plugin

  • Plugin page: bdwebteam-recent-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Jun 29, 2015
  • Number of updates: 15
  • Update frequency: every 1.3 days
  • Top authors: mahabub hasan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /4,302 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/bdwebteam-recent-post-tabs-widget/bdwebteam-recent-post-tabs-widget.php+41
    Function create_function() is deprecated

Server metrics [RAM: ▼1.81MB] [CPU: ▼54.31ms] Passed 4 tests

A check of server-side resources used by bdwebteam recent post tabs widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.32 ▼35.99
Dashboard /wp-admin2.21 ▼1.146.12 ▼54.95
Posts /wp-admin/edit.php2.21 ▼1.156.24 ▼41.32
Add New Post /wp-admin/post-new.php2.21 ▼3.686.20 ▼84.96
Media Library /wp-admin/upload.php2.21 ▼1.026.89 ▼27.44

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for bdwebteam recent post tabs widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.36 ▼0.272.12 ▲0.3743.53 ▼0.24
Dashboard /wp-admin2,200 ▲205.64 ▲0.0789.40 ▼5.9042.35 ▲5.40
Posts /wp-admin/edit.php2,102 ▲21.99 ▼0.0233.82 ▼8.4434.38 ▼0.15
Add New Post /wp-admin/post-new.php1,530 ▲223.68 ▲0.50681.78 ▲30.3666.34 ▲12.73
Media Library /wp-admin/upload.php1,399 ▼14.24 ▲0.07101.59 ▲3.3643.84 ▲1.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/bdwebteam-recent-post-tabs-widget/bdwebteam-recent-post-tabs-widget.php+41
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_bdwebteam-recent-post-tabs-widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #3 in bdwebteam-recent-post-tabs-widget/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Admin interface .) image missing
The official readme.txt might help

bdwebteam-recent-post-tabs-widget/bdwebteam-recent-post-tabs-widget.php 92% from 13 tests

This is the main PHP file of "bdwebteam recent post tabs widget" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin603 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File16524

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin