83% bullet-comments

Code Review | Bullet Comments

WordPress plugin Bullet Comments scored83%from 54 tests.

About plugin

  • Plugin page: bullet-comments
  • Plugin version: 1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Sep 1, 2021
  • Latest release: Oct 1, 2021
  • Number of updates: 17
  • Update frequency: every 1.8 days
  • Top authors: xianxiaengine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Bullet Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.05 ▼2.41
Dashboard /wp-admin3.40 ▲0.1048.96 ▼1.42
Posts /wp-admin/edit.php3.45 ▲0.1051.98 ▲2.30
Add New Post /wp-admin/post-new.php5.98 ▲0.1088.38 ▼14.62
Media Library /wp-admin/upload.php3.32 ▲0.1040.41 ▲0.96

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bullet Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▲0.021.79 ▲0.2646.11 ▲3.11
Dashboard /wp-admin2,211 ▲345.58 ▼0.0783.79 ▼6.8342.58 ▲1.61
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0837.31 ▼2.2835.05 ▼3.60
Add New Post /wp-admin/post-new.php1,539 ▲1122.83 ▼0.25679.51 ▲55.9551.20 ▼2.53
Media Library /wp-admin/upload.php1,416 ▲164.22 ▲0.05109.40 ▲2.8846.59 ▲1.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
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_action() in wp-content/plugins/bullet-comments/bullet-comments.php:10

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid URI ("no donate requires")
  • Screenshots: Please add an image for screenshot #1 (Bullet Comments for WordPress plugin in action)
The official readme.txt might help

bullet-comments/bullet-comments.php 92% from 13 tests

The main PHP file in "Bullet Comments" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)

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 plugin475 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15528475

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/2.png33.61KB16.13KB▼ 52.03%
img/1.png26.97KB13.56KB▼ 49.74%