83% bigboss-recent-post-widget

Code Review | Bigboss Recent Post Widget

WordPress plugin Bigboss Recent Post Widget scored83%from 54 tests.

About plugin

  • Plugin page: bigboss-recent-po...
  • Plugin version: 4.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2016
  • Latest release: May 15, 2019
  • Number of updates: 30
  • Update frequency: every 37.8 days
  • Top authors: bulbulbigboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.07ms] Passed 4 tests

A check of server-side resources used by Bigboss Recent Post Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.86 ▼2.62
Dashboard /wp-admin3.34 ▼0.0046.40 ▼15.92
Posts /wp-admin/edit.php3.39 ▲0.0447.16 ▼5.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.25 ▼15.82
Media Library /wp-admin/upload.php3.26 ▲0.0436.77 ▲0.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_bbwidgetarea
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bigboss Recent Post Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.401.91 ▲0.1745.50 ▲2.31
Dashboard /wp-admin2,192 ▲185.65 ▲0.0189.76 ▼2.4539.30 ▼3.37
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0535.34 ▼3.5435.63 ▼2.28
Add New Post /wp-admin/post-new.php1,526 ▼223.36 ▲0.21665.27 ▼16.9065.57 ▲13.27
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.0394.82 ▼23.0342.22 ▼10.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_bbwidgetarea
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bigboss-recent-post-widget/bigboss-widget.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #4 (/assets/screenshot-4.png), #5 (/assets/screenshot-5.png)
  • Screenshots: These screenshots lack descriptions #0, #0 in bigboss-recent-post-widget/assets to your readme.txt
The official readme.txt might help

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

The main PHP script in "Bigboss Recent Post Widget" version 4.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bigboss-recent-post-widget.php" instead of "bigboss-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin213 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113718213

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin