84% gabriel-gateway-redirect-urls

Code Review | Gabriel Gateway Redirect URLs

WordPress plugin Gabriel Gateway Redirect URLs scored 84% from 54 tests.

About plugin

  • Plugin page: gabriel-gateway-r...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Apr 26, 2020
  • Latest release: Nov 30, 2020
  • Number of updates: 5
  • Update frequency: every 44.4 days
  • Top authors: virnetx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.64ms] Passed 4 tests

Server-side resources used by Gabriel Gateway Redirect URLs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.30 ▼1.11
Dashboard /wp-admin3.47 ▲0.1748.78 ▼4.65
Posts /wp-admin/edit.php3.51 ▲0.1545.13 ▼0.63
Add New Post /wp-admin/post-new.php6.15 ▲0.2683.86 ▼11.48
Media Library /wp-admin/upload.php3.41 ▲0.1830.41 ▼1.31

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Gabriel Gateway Redirect URLs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.611.75 ▼0.0144.18 ▼7.97
Dashboard /wp-admin2,206 ▲215.91 ▲0.02101.28 ▼6.8837.06 ▼13.36
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0439.92 ▲0.6935.64 ▲1.02
Add New Post /wp-admin/post-new.php1,533 ▲1423.39 ▼0.14631.33 ▲33.4860.70 ▲9.85
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.04101.95 ▲6.3845.37 ▲3.21

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/gabriel-gateway-redirect-urls/gabriel_gateway_redirect_urls.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
There were not plugin tags detected

gabriel-gateway-redirect-urls/gabriel_gateway_redirect_urls.php 85% from 13 tests

"Gabriel Gateway Redirect URLs" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 738 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("gabriel-gateway-redirect-urls.php" instead of "gabriel_gateway_redirect_urls.php")

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 detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1294253

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin