84% mt8-secret-comments

Code Review | Mt8 Secret Comments

WordPress plugin Mt8 Secret Comments scored 84% from 54 tests.

About plugin

  • Plugin page: mt8-secret-comments
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Aug 30, 2015
  • Number of updates: 10
  • Update frequency: every 1.9 days
  • Top authors: mt8.biz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,298 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Mt8 Secret Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.52 ▼7.64
Dashboard /wp-admin3.32 ▲0.0245.79 ▼4.47
Posts /wp-admin/edit.php3.37 ▲0.0247.87 ▼3.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.04 ▲5.54
Media Library /wp-admin/upload.php3.24 ▲0.0131.95 ▼2.94

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

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

Browser metrics Passed 4 tests

Mt8 Secret Comments: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.391.59 ▼0.1741.38 ▼5.40
Dashboard /wp-admin2,209 ▲214.87 ▲0.0098.30 ▼18.7236.07 ▼13.41
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0336.55 ▼6.9636.87 ▼0.60
Add New Post /wp-admin/post-new.php1,534 ▲123.28 ▲0.03636.29 ▼17.0557.17 ▼1.98
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0294.69 ▼4.1342.63 ▼1.70

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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 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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mt8-secret-comments/mt8-secret-comments.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Latest information) image missing
The official readme.txt is a good inspiration

mt8-secret-comments/mt8-secret-comments.php Passed 13 tests

"Mt8 Secret Comments" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
Write a comment visible only to admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2451189
PO File17927

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin