94% rapid-comment-reply

Code Review | Rapid Comment Reply

WordPress plugin Rapid Comment Reply scored 94% from 54 tests.

About plugin

  • Plugin page: rapid-comment-reply
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1+
  • WordPress version: 5.8.1
  • First release: Jun 9, 2015
  • Latest release: Jul 23, 2015
  • Number of updates: 41
  • Update frequency: every 1.1 days
  • Top authors: peterwilsoncc-syncbot (97.56%)peterwilsoncc (4.88%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,639 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼141.71ms] Passed 4 tests

Server-side resources used by Rapid Comment Reply
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1338.50 ▲15.96
Dashboard /wp-admin3.08 ▲0.0255.05 ▲8.04
Posts /wp-admin/edit.php3.13 ▲0.0247.60 ▲7.64
Add New Post /wp-admin/post-new.php5.44 ▲0.0198.81 ▼570.06
Media Library /wp-admin/upload.php3.02 ▲0.0130.33 ▼12.46

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rapid Comment Reply
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.87 ▲0.2311.51 ▲4.2752.40 ▲0.53
Dashboard /wp-admin2,967 ▲305.87 ▼0.15143.07 ▼34.15117.88 ▲0.55
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0072.29 ▲6.9798.89 ▲0.73
Add New Post /wp-admin/post-new.php1,683 ▼018.71 ▲0.17378.10 ▼7.09115.59 ▼6.40
Media Library /wp-admin/upload.php1,810 ▲35.00 ▲0.00158.30 ▼0.31130.94 ▲10.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rapid-comment-reply/rapid-comment-reply.php:160

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tested up to: Invalid version format
The official readme.txt might help

rapid-comment-reply/rapid-comment-reply.php Passed 13 tests

Analyzing the main PHP file in "Rapid Comment Reply" version 1.1.1
98 characters long description:
Reworking of WordPress's frontend comment-reply.js to be unobtrusive. Refer to trac ticket #31590.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin279 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript251106129
PHP1295774
XML1181060
YAML11016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin