68% wordpress-comment-bubble-plugin

Code Review | Wordpress Comment Bubble

WordPress plugin Wordpress Comment Bubble scored68%from 54 tests.

About plugin

  • Plugin page: wordpress-comment...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2012
  • Latest release: Jan 9, 2012
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: mypatricks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,533 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼31.81ms] Passed 4 tests

Server-side resources used by Wordpress Comment Bubble
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.55 ▼9.79
Dashboard /wp-admin2.99 ▼0.3122.64 ▼28.59
Posts /wp-admin/edit.php2.99 ▼0.3624.12 ▼25.42
Add New Post /wp-admin/post-new.php2.99 ▼2.8929.50 ▼62.86
Media Library /wp-admin/upload.php2.99 ▼0.2325.74 ▼10.38
Comment Bubble /wp-admin/themes.php?page=comment-bubble3.0024.60

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Comment Bubble
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.27 ▼1.131.80 ▼0.1139.62 ▼4.68
Dashboard /wp-admin2,207 ▲155.81 ▲0.92101.89 ▼8.7537.96 ▼5.13
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0440.00 ▲3.5835.01 ▲1.21
Add New Post /wp-admin/post-new.php1,538 ▲523.39 ▲0.24654.05 ▼35.4452.87 ▼0.67
Media Library /wp-admin/upload.php1,389 ▲44.26 ▼0.03108.65 ▲4.1647.68 ▲3.37
Comment Bubble /wp-admin/themes.php?page=comment-bubble7842.0625.0729.89

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
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=comment-bubble
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
  • 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/wordpress-comment-bubble-plugin/comment-bubble.php:129

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Comment Bubble Count), #2 (Option/Setting)
Please take inspiration from this readme.txt

wordpress-comment-bubble-plugin/comment-bubble.php 92% from 13 tests

"Wordpress Comment Bubble" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wordpress-comment-bubble-plugin.php" instead of "comment-bubble.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281889

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin