84% copy-or-move-comments

Code Review | Copy or Move Comments

WordPress plugin Copy or Move Comments scored84%from 54 tests.

About plugin

  • Plugin page: copy-or-move-comm...
  • Plugin version: 5.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2015
  • Latest release: Mar 30, 2023
  • Number of updates: 46
  • Update frequency: every 65.2 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active /21,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.16ms] Passed 4 tests

Analyzing server-side resources used by Copy or Move Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.47 ▼1.77
Dashboard /wp-admin3.40 ▲0.0952.64 ▲1.08
Posts /wp-admin/edit.php3.51 ▲0.1549.79 ▼2.28
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.41 ▼21.68
Media Library /wp-admin/upload.php3.32 ▲0.0940.60 ▲4.81
Copy/Move Comments /wp-admin/admin.php?page=copy-move3.2830.11
Setting /wp-admin/admin.php?page=copy-move-setting3.2834.20

Server storage [IO: ▲0.34MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Copy or Move Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲6813.19 ▼1.194.38 ▲2.6039.28 ▼5.79
Dashboard /wp-admin2,248 ▲574.91 ▼0.97116.56 ▲14.8240.36 ▼3.72
Posts /wp-admin/edit.php2,131 ▲422.08 ▲0.0340.50 ▼1.0934.32 ▼5.15
Add New Post /wp-admin/post-new.php1,553 ▲1923.17 ▲0.06662.43 ▼2.5859.18 ▲7.69
Media Library /wp-admin/upload.php1,427 ▲424.25 ▼0.0698.46 ▼3.6647.32 ▲0.41
Copy/Move Comments /wp-admin/admin.php?page=copy-move1,0792.1544.4728.74
Setting /wp-admin/admin.php?page=copy-move-setting8311.9330.5528.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copy-or-move-comments/copy_move_comments.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
Please take inspiration from this readme.txt

copy-or-move-comments/copy_move_comments.php 92% from 13 tests

The primary PHP file in "Copy or Move Comments" version 5.0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("copy-or-move-comments.php" instead of "copy_move_comments.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected713 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29634710
JavaScript1002
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.00
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png83.21KB24.33KB▼ 70.77%
screenshot-1.png60.56KB16.46KB▼ 72.81%
screenshot-2.png83.43KB24.27KB▼ 70.90%