83% cellarweb-instant-comment-management

Code Review | CellarWeb Instant Comment Management

WordPress plugin CellarWeb Instant Comment Management scored83%from 54 tests.

About plugin

  • Plugin page: cellarweb-instant...
  • Plugin version: 1.01
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 14, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 8
  • Update frequency: every 48.9 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /268 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
Installer ran successfully

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

Analyzing server-side resources used by CellarWeb Instant Comment Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.46 ▼4.36
Dashboard /wp-admin3.34 ▼0.0150.94 ▼13.25
Posts /wp-admin/edit.php3.39 ▲0.0352.25 ▼0.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.98 ▼4.31
Media Library /wp-admin/upload.php3.26 ▲0.0339.44 ▲2.50
Instant Comment Management Usage /wp-admin/options-general.php?page=CWICM_settings3.2333.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CellarWeb Instant Comment Management
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.75 ▼0.901.66 ▼0.0743.45 ▼1.44
Dashboard /wp-admin2,215 ▲244.87 ▼0.17103.33 ▼1.2541.61 ▲0.14
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0438.67 ▼2.6737.58 ▲0.82
Add New Post /wp-admin/post-new.php1,519 ▼2317.69 ▼0.35685.60 ▲54.2364.30 ▲1.06
Media Library /wp-admin/upload.php1,394 ▲34.19 ▼0.09107.70 ▲6.7246.23 ▲1.05
Instant Comment Management Usage /wp-admin/options-general.php?page=CWICM_settings1,0542.0224.4934.36

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | 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 following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cellarweb-instant-comment-management/cellarweb-instant-comment-management.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: comment manage monitor moderate

cellarweb-instant-comment-management/cellarweb-instant-comment-management.php 85% from 13 tests

The main file in "CellarWeb Instant Comment Management" v. 1.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9.6" instead of "4.9")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.2" instead of "7.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected291 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12879152
CSS16389
JavaScript1101444
XML1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 3.07MB with 2.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png219.22KB11.19KB▼ 94.90%
assets/banner-1000x200.png609.96KB83.55KB▼ 86.30%
assets/icon-256x256.png566.52KB33.85KB▼ 94.02%
css/soda-cup-straw.png121.76KB58.15KB▼ 52.24%
assets/banner-772x250.png674.47KB83.79KB▼ 87.58%