10% name-redactor

Code Review | Name Redactor

WordPress plugin Name Redactor scored10%from 54 tests.

About plugin

  • Plugin page: name-redactor
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2013
  • Latest release: Apr 8, 2013
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: joav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /929 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/name-redactor/name-redactor.php+79
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.36ms] Passed 4 tests

Analyzing server-side resources used by Name Redactor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.44 ▼0.75
Dashboard /wp-admin3.45 ▲0.1553.76 ▼2.10
Posts /wp-admin/edit.php3.57 ▲0.2145.77 ▲6.70
Add New Post /wp-admin/post-new.php6.05 ▲0.1794.17 ▼12.48
Media Library /wp-admin/upload.php3.38 ▲0.1533.16 ▲1.91
Name Redactor /wp-admin/tools.php?page=nameredactor3.3228.09

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: 2 new tables, 7 new options
New tables
wp_name_redactor_bots
wp_name_redactor_opt_in_opt_out
New WordPress options
can_compress_scripts
theysaidso_admin_options
name_redactor_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Name Redactor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.14 ▼0.411.68 ▲0.0639.03 ▼5.20
Dashboard /wp-admin2,199 ▲225.63 ▲0.0991.39 ▲1.0842.39 ▲1.44
Posts /wp-admin/edit.php2,106 ▲91.99 ▼0.0340.50 ▲2.0135.68 ▼1.91
Add New Post /wp-admin/post-new.php1,526 ▼323.06 ▲0.06657.62 ▲48.1652.55 ▼11.01
Media Library /wp-admin/upload.php1,406 ▲124.25 ▲0.0598.41 ▼3.1242.91 ▼0.30
Name Redactor /wp-admin/tools.php?page=nameredactor9451.8524.7529.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=nameredactor
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=nameredactor
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/name-redactor/name-redactor.php:75
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/name-redactor/php/name-redactor-bot-list-table.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/name-redactor/php/name-redactor-name-list-table.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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: privacy, posts, page, hide, comments...

name-redactor/name-redactor.php Passed 13 tests

"Name Redactor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Redact personal names whenever the site is viewed by a search engine robot.

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
Everything looks great! No dangerous files found in this plugin964 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5218585963
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity24.75
▷ Minimum class complexity17.00
▷ Maximum class complexity33.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods59
▷ Static methods00.00%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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