78% redaction-io

Code Review | Redaction.io

WordPress plugin Redaction.io scored78%from 54 tests.

About plugin

  • Plugin page: redaction-io
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 19, 2023
  • Latest release: Feb 28, 2023
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: redactionio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /434 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.94ms] Passed 4 tests

An overview of server-side resources used by Redaction.io
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.21 ▲1.93
Dashboard /wp-admin3.34 ▼0.0047.16 ▼13.89
Posts /wp-admin/edit.php3.45 ▲0.1044.46 ▼2.48
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.29 ▼18.75
Media Library /wp-admin/upload.php3.26 ▲0.0433.21 ▼0.62

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Redaction.io
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.16 ▼1.481.75 ▲0.0744.76 ▲3.18
Dashboard /wp-admin2,225 ▲435.80 ▼0.0698.88 ▼7.5746.88 ▲5.28
Posts /wp-admin/edit.php2,107 ▲152.04 ▼0.0136.71 ▲1.2535.10 ▲0.82
Add New Post /wp-admin/post-new.php1,371 ▼14316.60 ▼0.93565.09 ▼176.1943.89 ▼26.88
Media Library /wp-admin/upload.php1,404 ▲134.41 ▲0.1396.67 ▼4.0643.83 ▼0.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Almost there! Just fix the following items
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/redaction-io/inc/rest-api/rest-api.php
    • > /wp-content/plugins/redaction-io/inc/admin/metaboxes.php
    • > /wp-content/plugins/redaction-io/redaction-io-autoload.php
    • > /wp-content/plugins/redaction-io/inc/admin/admin.php
    • > /wp-content/plugins/redaction-io/inc/admin/admin-pages/main.php
    • > /wp-content/plugins/redaction-io/inc/admin/admin-pages/bulk-create/bulk-create.php
    • > /wp-content/plugins/redaction-io/redaction-io.php
    • > /wp-content/plugins/redaction-io/inc/xhr/admin.php
    • > /wp-content/plugins/redaction-io/inc/admin/metaboxes/admin-metaboxes-keyword.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/redaction-io/inc/admin/admin-pages/partials/html-top.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid version format
You can look at the official readme.txt

redaction-io/redaction-io.php Passed 13 tests

The main PHP file in "Redaction.io" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Generate Full Content SEO with AI.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected11,192 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JSON40010,057
PHP15207377972
PO File14245116
SVG40043
CSS2002
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity30.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-2.png47.76KB16.86KB▼ 64.69%
.wordpress-org/screenshot-1.png55.07KB19.87KB▼ 63.92%
.wordpress-org/icon-128x128.png6.36KB2.99KB▼ 53.06%
.wordpress-org/icon-256x256.png13.85KB6.10KB▼ 55.98%