89% redirection-graphql-extension

Code Review | Redirection GraphQL Extension

WordPress plugin Redirection GraphQL Extension scored89%from 54 tests.

About plugin

  • Plugin page: redirection-graph...
  • Plugin version: 0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 1, 2022
  • Latest release: Jul 1, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: urbaninsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /469 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.49ms] Passed 4 tests

An overview of server-side resources used by Redirection GraphQL Extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.15 ▲1.18
Dashboard /wp-admin3.33 ▲0.0249.48 ▼3.06
Posts /wp-admin/edit.php3.38 ▲0.0250.69 ▼2.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.24 ▼6.07
Media Library /wp-admin/upload.php3.25 ▲0.0233.55 ▼6.53

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Redirection GraphQL Extension
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.32 ▼0.031.98 ▲0.3343.51 ▲0.96
Dashboard /wp-admin2,204 ▲275.62 ▲0.0890.78 ▼0.4540.79 ▲0.58
Posts /wp-admin/edit.php2,110 ▲71.97 ▼0.0441.35 ▼0.0938.42 ▼6.46
Add New Post /wp-admin/post-new.php1,535 ▲923.43 ▼0.08592.44 ▼40.0251.40 ▼7.82
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.02106.08 ▲1.4143.80 ▼3.76

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: graphql, gatsby, redirects, redirection

redirection-graphql-extension/redirection-graphql.php 85% from 13 tests

This is the main PHP file of "Redirection GraphQL Extension" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("redirection-graphql-extension.php" instead of "redirection-graphql.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected163 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12647163

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
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
PNG images were not found in this plugin