78% ps-vb-user-copy

Code Review | PS_User Copy

WordPress plugin PS_User Copy scored78%from 54 tests.

About plugin

  • Plugin page: ps-vb-user-copy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Feb 16, 2016
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: pooyairwolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /596 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by PS_User Copy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0044.46 ▲0.71
Dashboard /wp-admin52.56 ▲49.1710,163,087.56 ▲10,163,022.41
Posts /wp-admin/edit.php3.41 ▲0.0048.09 ▼9.55
Add New Post /wp-admin/post-new.php5.94 ▲0.0089.24 ▼18.84
Media Library /wp-admin/upload.php3.28 ▲0.0039.59 ▲1.17
VB User Copy /wp-admin/options-general.php?page=vb4userimport3.2734.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for PS_User Copy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▲0.151.86 ▲0.1643.03 ▲1.38
Dashboard /wp-admin2,202 ▲255.63 ▼0.0690.03 ▼4.5938.13 ▼1.81
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0138.21 ▼9.3434.33 ▼1.32
Add New Post /wp-admin/post-new.php1,531 ▼623.18 ▲4.74688.59 ▲20.8557.51 ▼12.32
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.0197.99 ▲0.2641.96 ▼1.91
VB User Copy /wp-admin/options-general.php?page=vb4userimport8732.1630.0532.94

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=vb4userimport
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=vb4userimport
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 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
Please fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ps-vb-user-copy/vb_user_copy_page.php
    • > /wp-content/plugins/ps-vb-user-copy/index.php
    • > /wp-content/plugins/ps-vb-user-copy/vb_user_copy.php
    • > /wp-content/plugins/ps-vb-user-copy/vb_user_copy_options.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: vbulletin, transfer, users, vb, user

ps-vb-user-copy/vb_user_copy.php 92% from 13 tests

This is the main PHP file of "PS_User Copy" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ps-vb-user-copy.php" instead of "vb_user_copy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin128 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42012128

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.17
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin