84% wp-custom-comments

Code Review | WP Custom Comments

WordPress plugin WP Custom Comments scored84%from 54 tests.

About plugin

  • Plugin page: wp-custom-comments
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2016
  • Latest release: Oct 28, 2016
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: riselab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,017 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.26ms] Passed 4 tests

Server-side resources used by WP Custom Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.60 ▼1.56
Dashboard /wp-admin3.31 ▲0.0144.06 ▼4.02
Posts /wp-admin/edit.php3.36 ▲0.0150.25 ▲1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.76 ▼22.40
Media Library /wp-admin/upload.php3.23 ▲0.0133.00 ▼1.07
All Comments /wp-admin/edit-comments.php3.2535.77
WP Custom Comments /wp-admin/edit-comments.php?page=wp-custom-comments3.2026.53

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Custom Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.22 ▼1.081.50 ▼0.0339.44 ▼6.66
Dashboard /wp-admin2,223 ▲385.88 ▼0.01109.95 ▲6.7143.67 ▲2.55
Posts /wp-admin/edit.php2,109 ▲232.05 ▲0.0639.58 ▲0.4936.70 ▲1.20
Add New Post /wp-admin/post-new.php1,529 ▼1317.37 ▼0.66685.90 ▲18.5162.22 ▲9.74
Media Library /wp-admin/upload.php1,408 ▲204.20 ▲0.1397.17 ▼11.9640.83 ▼8.26
All Comments /wp-admin/edit-comments.php1,8122.2638.8835.31
WP Custom Comments /wp-admin/edit-comments.php?page=wp-custom-comments8012.0522.2923.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 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/wp-custom-comments/wp-custom-comments.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

wp-custom-comments/wp-custom-comments.php 92% from 13 tests

This is the main PHP file of "WP Custom Comments" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 222 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102446

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.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected