83% vb-wp-move-comments

Code Review | WordPress Move Comments

WordPress plugin WordPress Move Comments scored83%from 54 tests.

About plugin

  • Plugin page: vb-wp-move-comments
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Nov 26, 2012
  • Latest release: Dec 14, 2012
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: VelvetBlues.com (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /5,711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by WordPress Move Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0339.44 ▼2.34
Dashboard /wp-admin3.38 ▼0.0150.97 ▼21.25
Posts /wp-admin/edit.php3.49 ▲0.1051.16 ▲1.50
Add New Post /wp-admin/post-new.php5.97 ▲0.04107.32 ▼2.78
Media Library /wp-admin/upload.php3.30 ▲0.0334.54 ▼3.03

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Move Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▲0.041.64 ▼0.0140.58 ▼6.34
Dashboard /wp-admin2,195 ▲155.62 ▲0.0190.93 ▼9.2741.26 ▼6.34
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0039.41 ▲3.6437.95 ▲1.92
Add New Post /wp-admin/post-new.php1,538 ▲1218.09 ▼4.90611.09 ▼71.0359.61 ▲7.56
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.08103.55 ▼14.7445.26 ▼5.74

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/vb-wp-move-comments/vb-wp-move-comments.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Extra fields added to the standard WordPress comment editing screen. screenshot-1.png), #2 (Extra fields added to the Quick Edit form on the main comments page. screenshot2.png)
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

vb-wp-move-comments/vb-wp-move-comments.php 92% from 13 tests

The entry point to "WordPress Move Comments" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 393 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected210 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13923210

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions9
▷ Named functions9100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png25.07KB11.94KB▼ 52.37%
screenshot-1.png3.62KB1.67KB▼ 53.95%