90% comment-author-role-label

Code Review | Comment Author Role Label

WordPress plugin Comment Author Role Label scored90%from 54 tests.

About plugin

  • Plugin page: comment-author-ro...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2018
  • Latest release: Mar 18, 2018
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: jeremyroberts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Comment Author Role Label
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.64 ▼7.83
Dashboard /wp-admin3.35 ▲0.0152.45 ▼17.33
Posts /wp-admin/edit.php3.40 ▲0.0552.02 ▲0.73
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.40 ▼23.01
Media Library /wp-admin/upload.php3.27 ▲0.0538.76 ▲2.70
Author Labels /wp-admin/edit-comments.php?page=comment_author_RL3.3035.39
All Comments /wp-admin/edit-comments.php3.3443.81

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Comment Author Role Label
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6413.19 ▼1.101.55 ▼0.6444.17 ▼0.29
Dashboard /wp-admin2,231 ▲545.83 ▲0.1693.91 ▼4.5439.84 ▼3.39
Posts /wp-admin/edit.php2,138 ▲382.26 ▲0.2837.71 ▲2.6437.37 ▲1.38
Add New Post /wp-admin/post-new.php1,555 ▲2923.81 ▲0.73612.89 ▼3.0233.14 ▼18.29
Media Library /wp-admin/upload.php1,439 ▲394.42 ▲0.19104.43 ▼3.7842.79 ▼2.34
Author Labels /wp-admin/edit-comments.php?page=comment_author_RL1,4062.9960.3428.35
All Comments /wp-admin/edit-comments.php1,8422.5035.4031.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: author tags, post authors, comments

comment-author-role-label/comment-author-role-label.php Passed 13 tests

The principal PHP file in "Comment Author Role Label" v. 1.0.0 is loaded by WordPress automatically on each request
126 characters long description:
Displays a user role next to the comment from a user registered on your site with the ability to customize a background color.

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
There were no executable files found in this plugin160 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23441155
JavaScript1215

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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