84% mb-comment-meta

Code Review | MB Comment Meta

WordPress plugin MB Comment Meta scored 84% from 54 tests.

About plugin

  • Plugin page: mb-comment-meta
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Jul 18, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 3,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by MB Comment Meta
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.12 ▼1.46
Dashboard /wp-admin3.31 ▲0.0048.19 ▼0.09
Posts /wp-admin/edit.php3.36 ▲0.0047.18 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.24 ▲8.08
Media Library /wp-admin/upload.php3.23 ▲0.0032.33 ▼0.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

MB Comment Meta: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.51 ▼0.641.67 ▼0.4135.65 ▼8.93
Dashboard /wp-admin2,206 ▲215.77 ▼0.0394.23 ▼8.2436.63 ▼9.93
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0333.21 ▼9.6533.20 ▼3.35
Add New Post /wp-admin/post-new.php1,543 ▲2923.49 ▲5.97599.15 ▼35.3151.66 ▲1.09
Media Library /wp-admin/upload.php1,391 ▲64.25 ▲0.1297.09 ▲2.6042.69 ▼3.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'RW_Meta_Box' not found in wp-content/plugins/mb-comment-meta/inc/class-mb-comment-meta-box.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: comment meta, comment, custom fields, comment custom fields, comments

mb-comment-meta/mb-comment-meta.php 92% from 13 tests

The main PHP script in "MB Comment Meta" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected60 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4179760

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods228.57%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin