77% cmmntz

Code Review | WordPress Online Comments Plugin – CMMNTZ

WordPress plugin WordPress Online Comments Plugin – CMMNTZ scored77%from 54 tests.

About plugin

  • Plugin page: cmmntz
  • Plugin version: 1.04
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2019
  • Latest release: Apr 4, 2019
  • Number of updates: 28
  • Update frequency: every 1.8 days
  • Top authors: jesseclassibridge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,074 total downloads

Benchmarks

Plugin footprint 82% 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.03MB] [CPU: ▼4.38ms] Passed 4 tests

Server-side resources used by WordPress Online Comments Plugin – CMMNTZ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.44 ▼9.23
Dashboard /wp-admin3.33 ▲0.0349.92 ▼4.32
Posts /wp-admin/edit.php3.38 ▲0.0352.80 ▲1.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.18 ▼5.91
Media Library /wp-admin/upload.php3.26 ▲0.0340.15 ▲3.09
All Comments /wp-admin/edit-comments.php3.3243.46

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • You have illegally modified 3 files (0.00KB) outside of "wp-content/plugins/cmmntz/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/cmmntz/assets/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/cmmntz/assets/banner-1544\303\227500.png"
    • (new file) "wp-content/plugins/cmmntz/assets/icon-128\303\227128.png"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Online Comments Plugin – CMMNTZ
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,759 ▼214.27 ▲0.331.54 ▼0.1443.51 ▼0.99
Dashboard /wp-admin2,176 ▼15.61 ▼0.0290.25 ▼3.3139.36 ▲1.14
Posts /wp-admin/edit.php2,081 ▼192.03 ▲0.0539.91 ▲4.8335.29 ▲0.53
Add New Post /wp-admin/post-new.php1,514 ▼1222.99 ▲0.11695.84 ▲55.9154.79 ▼12.50
Media Library /wp-admin/upload.php1,384 ▼194.14 ▲0.0096.73 ▼22.1945.55 ▲2.22
All Comments /wp-admin/edit-comments.php1,7812.2634.9935.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/cmmntz/cmmntz.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cmmntz/views/cmmntz-template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 40 tag instead of maximum 10
The official readme.txt is a good inspiration

cmmntz/cmmntz.php 85% from 13 tests

"WordPress Online Comments Plugin – CMMNTZ" version 1.04's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin115 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP62828115

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.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%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 3.90MB with 2.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256-256.png24.99KB10.39KB▼ 58.41%
assets/icon-128×128.png11.34KB4.71KB▼ 58.49%
assets/banner-772×250.png1,199.27KB415.93KB▼ 65.32%
assets/screenshot_1.png52.01KB14.07KB▼ 72.94%
assets/banner-1544×500.png2,710.49KB1,269.65KB▼ 53.16%