84% replybox

Code Review | ReplyBox - Better WordPress Comments

WordPress plugin ReplyBox - Better WordPress Comments scored84%from 54 tests.

About plugin

  • Plugin page: replybox
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2018
  • Latest release: Jan 6, 2023
  • Number of updates: 36
  • Update frequency: every 42.1 days
  • Top authors: A5hleyRich (83.33%)jamesckemp (19.44%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /10,070 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by ReplyBox - Better WordPress Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.22 ▼5.45
Dashboard /wp-admin3.33 ▲0.0344.00 ▼2.22
Posts /wp-admin/edit.php3.38 ▲0.0246.07 ▼1.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.36 ▼0.92
Media Library /wp-admin/upload.php3.25 ▲0.0239.10 ▲5.02
Welcome to ReplyBox /wp-admin/index.php?page=replybox-welcome3.2735.24
ReplyBox /wp-admin/options-general.php?page=replybox3.2631.36

Server storage [IO: ▲0.68MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
replybox
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReplyBox - Better WordPress Comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,740 ▲513.61 ▼1.171.56 ▼0.3038.28 ▼12.56
Dashboard /wp-admin2,160 ▼324.85 ▼0.1397.58 ▼18.0739.82 ▼1.15
Posts /wp-admin/edit.php2,079 ▼102.00 ▼0.0438.77 ▼0.5635.79 ▼1.01
Add New Post /wp-admin/post-new.php1,510 ▼417.77 ▲0.34596.12 ▼68.2854.31 ▼9.72
Media Library /wp-admin/upload.php1,378 ▼104.19 ▼0.0195.46 ▼22.1240.22 ▼8.30
Welcome to ReplyBox /wp-admin/index.php?page=replybox-welcome1,1042.0125.1880.08
ReplyBox /wp-admin/options-general.php?page=replybox8242.0324.0226.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • replybox
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      file_get_contents(REPLYBOX_PATHassets/img/logo.svg): failed to open stream: No such file or directory in wp-content/plugins/replybox/views/admin-welcome.php on line 9
    • > PHP Warning
      Use of undefined constant REPLYBOX_PATH - assumed 'REPLYBOX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/replybox/views/admin-welcome.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_list_comments() in wp-content/plugins/replybox/views/comments.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/replybox/views/admin-welcome.php:37
    • > PHP Warning
      Use of undefined constant REPLYBOX_URL - assumed 'REPLYBOX_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/replybox/views/admin-welcome.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: comments, comment

replybox/replybox.php Passed 13 tests

"ReplyBox - Better WordPress Comments" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
A simple, honest comment system which works everywhere. No ads, no dodgy affiliate links, no fluff.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,107 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP5122252589
CSS17360443
SVG220075

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity20.00
▷ Minimum class complexity5.00
▷ Maximum class complexity35.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods40
▷ Static methods12.50%
▷ Public methods2870.00%
▷ Protected methods12.50%
▷ Private methods1127.50%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants2100.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