99% robots-txt-extender

Code Review | Robots.txt Extender

WordPress plugin Robots.txt Extender scored 99% from 54 tests.

About plugin

  • Plugin page: robots-txt-extender
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 5.8.1
  • First release: Aug 22, 2020
  • Latest release: Aug 22, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bettoadami (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 162 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼141.80ms] Passed 4 tests

This is a short check of server-side resources used by Robots.txt Extender
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0133.04 ▼0.30
Dashboard /wp-admin3.07 ▲0.0148.24 ▲3.99
Posts /wp-admin/edit.php3.12 ▲0.0143.15 ▼0.55
Add New Post /wp-admin/post-new.php5.43 ▼0.0186.43 ▼559.60
Media Library /wp-admin/upload.php3.01 ▲0.0126.52 ▼6.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Robots.txt Extender
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.73 ▲0.2210.01 ▲0.4052.33 ▲6.30
Dashboard /wp-admin2,970 ▲395.90 ▼0.06135.01 ▼9.78109.60 ▼9.85
Posts /wp-admin/edit.php2,739 ▲32.70 ▲0.0164.59 ▼7.8790.95 ▲9.31
Add New Post /wp-admin/post-new.php1,504 ▼17918.55 ▼0.26364.86 ▲1.29107.93 ▲1.99
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.01152.73 ▼2.71121.91 ▲10.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

robots-txt-extender/robots-txt-extender.php 92% from 13 tests

"Robots.txt Extender" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 445 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected606 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11110564
PHP275242

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin