78% csv-to-301-redirects

Code Review | CSV to 301 Redirects

WordPress plugin CSV to 301 Redirects scored78%from 54 tests.

About plugin

  • Plugin page: csv-to-301-redirects
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2016
  • Latest release: Jan 24, 2017
  • Number of updates: 5
  • Update frequency: every 12.0 days
  • Top authors: davevanhoorn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.65ms] Passed 4 tests

Analyzing server-side resources used by CSV to 301 Redirects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.16 ▼0.53
Dashboard /wp-admin3.31 ▲0.0149.90 ▼4.33
Posts /wp-admin/edit.php3.36 ▲0.0146.35 ▼3.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.51 ▼10.62
Media Library /wp-admin/upload.php3.24 ▲0.0139.92 ▲4.34
CSV to 301 /wp-admin/options-general.php?page=csv-to-301-redirects-options3.1832.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CSV to 301 Redirects
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▲2414.29 ▼0.041.85 ▲0.0441.98 ▼3.87
Dashboard /wp-admin2,191 ▲115.63 ▲0.0685.69 ▼2.7442.38 ▼0.26
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0135.80 ▼0.1635.99 ▲1.53
Add New Post /wp-admin/post-new.php1,530 ▲418.31 ▼4.75644.61 ▼39.6169.20 ▲7.23
Media Library /wp-admin/upload.php1,396 ▼44.16 ▼0.1495.44 ▼10.1243.00 ▼3.24
CSV to 301 /wp-admin/options-general.php?page=csv-to-301-redirects-options8032.0126.5725.78

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=csv-to-301-redirects-options
    • > Notice in wp-content/plugins/csv-to-301-redirects/csv-to-301-redirects.php+216
    Trying to access array offset on value of type bool

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
  • 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/csv-to-301-redirects/csv-to-301-redirects.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: seo, redirection, csv, bulk, redirect...

csv-to-301-redirects/csv-to-301-redirects.php 92% from 13 tests

"CSV to 301 Redirects" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102118192

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.46
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin