84% bb-date-and-years-shortcode

Code Review | Bigboss Date and years shortcode

WordPress plugin Bigboss Date and years shortcode scored84%from 54 tests.

About plugin

  • Plugin page: bb-date-and-years...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2015
  • Latest release: May 15, 2019
  • Number of updates: 13
  • Update frequency: every 99.8 days
  • Top authors: bulbulbigboss (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.09ms] Passed 4 tests

Analyzing server-side resources used by Bigboss Date and years shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.25 ▼2.68
Dashboard /wp-admin3.31 ▲0.0144.79 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0046.37 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.99 ▼2.91
Media Library /wp-admin/upload.php3.23 ▲0.0033.61 ▼0.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bigboss Date and years shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.74 ▲0.161.80 ▼0.2740.23 ▼4.43
Dashboard /wp-admin2,203 ▲125.83 ▲0.9394.65 ▼20.1240.06 ▼5.34
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0440.23 ▲3.8635.80 ▼0.50
Add New Post /wp-admin/post-new.php1,514 ▼1917.78 ▼5.31638.15 ▼29.9662.13 ▲7.00
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0694.94 ▼17.3842.42 ▼4.76

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bb-date-and-years-shortcode/plugins-hooks.php:25

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (2.)
Please take inspiration from this readme.txt

bb-date-and-years-shortcode/plugins-hooks.php 92% from 13 tests

The main PHP script in "Bigboss Date and years shortcode" version 2.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("bb-date-and-years-shortcode.php" instead of "plugins-hooks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15119

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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Screenshot.png8.58KB4.00KB▼ 53.36%