90% custom-comment-types

Code Review | Custom Comment Types

WordPress plugin Custom Comment Types scored90%from 54 tests.

About plugin

  • Plugin page: custom-comment-types
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5.2
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: May 12, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: aaroncampbell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /799 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.82ms] Passed 4 tests

This is a short check of server-side resources used by Custom Comment Types
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.13 ▼3.92
Dashboard /wp-admin3.31 ▲0.0150.83 ▼0.85
Posts /wp-admin/edit.php3.36 ▲0.0051.20 ▼0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.39 ▲5.80
Media Library /wp-admin/upload.php3.23 ▲0.0041.53 ▲2.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Custom Comment Types
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.151.79 ▼0.5243.12 ▲0.30
Dashboard /wp-admin2,206 ▲185.84 ▲0.7897.78 ▼19.5538.80 ▼0.23
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0438.27 ▼2.1232.09 ▼2.08
Add New Post /wp-admin/post-new.php1,535 ▲2123.48 ▲5.89669.96 ▼18.2058.40 ▲3.51
Media Library /wp-admin/upload.php1,382 ▼34.22 ▼0.0297.77 ▼24.8444.01 ▼5.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: comment types

custom-comment-types/custom-comment-types.php Passed 13 tests

This is the main PHP file of "Custom Comment Types" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
108 characters long description:
Official plugin for the Custom Comment Types featured project - https://core.trac.wordpress.org/ticket/35214

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
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172116

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods133.33%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected