10% wp-inline-comment-errors

Code Review | WP Inline Comment Errors

WordPress plugin WP Inline Comment Errors scored10%from 54 tests.

About plugin

  • Plugin page: wp-inline-comment...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2013
  • Latest release: May 13, 2014
  • Number of updates: 41
  • Update frequency: every 6.8 days
  • Top authors: aviarts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,111 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors.class.php+180
    Use of undefined constant get_defined_messages - assumed 'get_defined_messages' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.71MB] [CPU: ▼55.63ms] Passed 4 tests

An overview of server-side resources used by WP Inline Comment Errors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.195.31 ▼42.37
Dashboard /wp-admin2.30 ▼1.0110.43 ▼41.60
Posts /wp-admin/edit.php2.30 ▼1.067.47 ▼44.87
Add New Post /wp-admin/post-new.php2.30 ▼3.595.96 ▼93.68
Media Library /wp-admin/upload.php2.30 ▼0.935.86 ▼31.44
WP Inline Comment Errors /wp-admin/options-general.php?page=wpice2.306.23

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Inline Comment Errors
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.25 ▲0.022.83 ▲0.7459.06 ▲15.93
Dashboard /wp-admin2,199 ▲255.48 ▼0.1085.80 ▼8.2940.14 ▼0.44
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0035.02 ▲0.0536.30 ▲2.11
Add New Post /wp-admin/post-new.php1,540 ▲1418.32 ▼4.56647.44 ▼39.6579.70 ▲21.88
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.02100.07 ▼5.5343.67 ▼1.78
WP Inline Comment Errors /wp-admin/options-general.php?page=wpice8591.9923.0630.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors.class.php+180
    Use of undefined constant get_defined_messages - assumed 'get_defined_messages' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wpice
    • > Warning in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors.class.php+180
    Use of undefined constant get_defined_messages - assumed 'get_defined_messages' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=wpice
    • > Notice in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors.class.php+240
    Undefined property: WP_Inline_Comment_Errors::$custom_error_messages
    • > GET request to /wp-admin/options-general.php?page=wpice
    • > Notice in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors_settings.php+104
    Undefined variable: config
    • > GET request to /wp-admin/options-general.php?page=wpice
    • > Warning in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors_settings.php+128
    ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
    • > GET request to /wp-admin/options-general.php?page=wpice
    • > Notice in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors_settings.php+161
    Undefined variable: items

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-inline-comment-errors/examples/validation-functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors_settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-inline-comment-errors/examples/wpice-comment-error-template.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/wp-inline-comment-errors/examples/get-error-from-math-captcha.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/wp-inline-comment-errors/wp_inline_comment_errors.class.php:131
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-inline-comment-errors/examples/sample-configuration.php:22

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-inline-comment-errors === )
You can take inspiration from this readme.txt

wp-inline-comment-errors/wp_inline_comment_errors.php 85% from 13 tests

"WP Inline Comment Errors" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 344 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-inline-comment-errors.php" instead of "wp_inline_comment_errors.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
Everything looks great! No dangerous files found in this plugin841 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7240618631
PO File24040188
CSS14122

PHP code Passed 2 tests

A brief analysis 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.42
Average class complexity97.00
▷ Minimum class complexity97.00
▷ Maximum class complexity97.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods13.12%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin