84% robots-txt-quick-editor

Code Review | Robots.txt Quick Editor

WordPress plugin Robots.txt Quick Editor scored84%from 54 tests.

About plugin

  • Plugin page: robots-txt-quick-...
  • Plugin version: 0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2021
  • Latest release: Nov 5, 2022
  • Number of updates: 17
  • Update frequency: every 18.2 days
  • Top authors: davide.airaghi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /3,088 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Robots.txt Quick Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.31 ▼0.45
Dashboard /wp-admin3.33 ▲0.0348.84 ▼8.87
Posts /wp-admin/edit.php3.38 ▲0.0346.32 ▼10.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.47 ▼11.61
Media Library /wp-admin/upload.php3.25 ▲0.0337.11 ▼0.98
Robots.txt /wp-admin/options-general.php?page=robots-txt-quick-editor-page3.2237.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
robots-txt-quick-editor-content
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
robots-txt-quick-editor-overwrite

Browser metrics Passed 4 tests

A check of browser resources used by Robots.txt Quick Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.21 ▼1.172.16 ▲0.2342.04 ▼1.69
Dashboard /wp-admin2,225 ▲225.89 ▲0.03104.49 ▼4.8441.45 ▼2.57
Posts /wp-admin/edit.php2,104 ▲12.01 ▼0.0133.93 ▼7.2531.94 ▼12.45
Add New Post /wp-admin/post-new.php1,550 ▲2423.25 ▲5.77653.29 ▼36.9655.28 ▼7.30
Media Library /wp-admin/upload.php1,404 ▲104.24 ▲0.0197.41 ▼14.8144.82 ▼1.60
Robots.txt /wp-admin/options-general.php?page=robots-txt-quick-editor-page8172.1424.9725.98

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
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_recent-posts
    • robots-txt-quick-editor-overwrite
    • widget_recent-comments
    • robots-txt-quick-editor-content
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/robots-txt-quick-editor/robots-txt-quick-editor.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: robots, seo, robotstxt

robots-txt-quick-editor/robots-txt-quick-editor.php Passed 13 tests

"Robots.txt Quick Editor" version 0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
30 characters long description:
Plugin to edit robots.txt file

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
There were no executable files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11210114
PO File15531

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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 functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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