84% simple-301-redirects-addon-bulk-uploader

Code Review | Simple 301 Redirects - Addon - Bulk Uploader

WordPress plugin Simple 301 Redirects - Addon - Bulk Uploader scored84%from 54 tests.

About plugin

  • Plugin page: simple-301-redire...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.0
  • WordPress version: 6.3.1
  • First release: Oct 11, 2013
  • Latest release: Aug 14, 2019
  • Number of updates: 34
  • Update frequency: every 62.7 days
  • Top authors: ashdurham (67.65%)webcraftic (35.29%)

Code review

54 tests

User reviews

26 reviews

Install metrics

5,000+ active /168,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Simple 301 Redirects - Addon - Bulk Uploader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.50 ▼1.59
Dashboard /wp-admin3.31 ▲0.0144.67 ▼3.54
Posts /wp-admin/edit.php3.36 ▲0.0046.15 ▼1.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.21 ▼4.36
Media Library /wp-admin/upload.php3.23 ▲0.0033.72 ▼2.94

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple 301 Redirects - Addon - Bulk Uploader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.54 ▼0.681.67 ▼0.2947.44 ▲3.62
Dashboard /wp-admin2,212 ▲244.84 ▼1.06109.83 ▼5.8138.92 ▼4.82
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0140.91 ▲3.1935.78 ▲3.52
Add New Post /wp-admin/post-new.php1,539 ▼323.40 ▲4.99669.83 ▲28.7255.15 ▼10.46
Media Library /wp-admin/upload.php1,394 ▲124.26 ▲0.12105.75 ▲5.7547.87 ▲4.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/simple-301-redirects-addon-bulk-uploader/simple-301-bulk-uploader.php:38

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: csv, bulk upload, 301, redirects, simple 301 redirects

simple-301-redirects-addon-bulk-uploader/simple-301-bulk-uploader.php 85% from 13 tests

"Simple 301 Redirects - Addon - Bulk Uploader" version 1.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-301-redirects-addon-bulk-uploader.php" instead of "simple-301-bulk-uploader.php")

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
Everything looks great! No dangerous files found in this plugin540 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2115190397
PO File1181874
CSS111069

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.49
Average class complexity34.50
▷ Minimum class complexity26.00
▷ Maximum class complexity43.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods1551.72%
▷ Protected methods00.00%
▷ Private methods1448.28%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin