89% comment-form-inline-errors

Code Review | Comment Form Inline Errors

WordPress plugin Comment Form Inline Errors scored89%from 54 tests.

About plugin

  • Plugin page: comment-form-inli...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Sep 11, 2013
  • Latest release: Nov 14, 2013
  • Number of updates: 10
  • Update frequency: every 6.3 days
  • Top authors: latorante (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,159 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Comment Form Inline Errors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.49 ▲5.20
Dashboard /wp-admin3.34 ▼0.0143.20 ▼20.00
Posts /wp-admin/edit.php3.39 ▲0.0344.29 ▼0.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.64 ▼13.72
Media Library /wp-admin/upload.php3.26 ▲0.0333.64 ▼4.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Comment Form Inline Errors
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.021.70 ▲0.0442.88 ▲3.52
Dashboard /wp-admin2,206 ▲185.91 ▲0.01110.80 ▲7.1443.97 ▼0.23
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0038.19 ▼2.0034.61 ▼0.21
Add New Post /wp-admin/post-new.php1,533 ▼922.99 ▲4.58591.09 ▼94.6448.94 ▼2.62
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0397.10 ▼4.4644.67 ▲3.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This shows form error before plugin activation, and after.), #2 (With plugin activated, before submitting our comment.), #3 (With plugin activated, after comment submission.)
Please take inspiration from this readme.txt

comment-form-inline-errors/comment-form-inline-errors.php 92% from 13 tests

The main PHP file in "Comment Form Inline Errors" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png90.39KB37.61KB▼ 58.39%
screenshot-1.png62.94KB24.71KB▼ 60.73%
screenshot-3.png102.83KB43.11KB▼ 58.07%