90% comments-sticky-moderate

Code Review | Comments Sticky Moderate

WordPress plugin Comments Sticky Moderate scored90%from 54 tests.

About plugin

  • Plugin page: comments-sticky-m...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Jan 26, 2022
  • Number of updates: 4
  • Update frequency: every 127.5 days
  • Top authors: treeflips (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Comments Sticky Moderate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.18 ▼4.40
Dashboard /wp-admin3.31 ▲0.0055.17 ▲7.78
Posts /wp-admin/edit.php3.36 ▲0.0052.53 ▲2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.99 ▼6.53
Media Library /wp-admin/upload.php3.24 ▲0.0038.32 ▲0.72

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Comments Sticky Moderate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.42 ▲0.022.13 ▲0.3740.51 ▼3.13
Dashboard /wp-admin2,195 ▲155.62 ▲0.0191.26 ▲3.2638.66 ▼9.34
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0239.57 ▲1.3435.84 ▼2.92
Add New Post /wp-admin/post-new.php1,528 ▼723.06 ▲5.03684.79 ▲27.2054.15 ▼13.58
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.1199.68 ▼10.0142.32 ▼1.62

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
2 plugin tags: comments, moderate

comments-sticky-moderate/comments-sticky-moderate.php Passed 13 tests

Analyzing the main PHP file in "Comments Sticky Moderate" version 1.0.0
76 characters long description:
Moves moderation options at top of each comment to speed up manual approval.

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
No dangerous file extensions were detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP131517
Markdown1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin