94% autoblank-for-link

Code Review | Autoblank for link

WordPress plugin Autoblank for link scored 94% from 54 tests.

About plugin

  • Plugin page: autoblank-for-link
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Sep 4, 2017
  • Latest release: Sep 4, 2017
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: Sannikov1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 492 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼194.78ms] Passed 4 tests

A check of server-side resources used by Autoblank for link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0024.70 ▲3.76
Dashboard /wp-admin3.06 ▼0.0031.11 ▼5.07
Posts /wp-admin/edit.php3.11 ▲0.0130.23 ▼1.22
Add New Post /wp-admin/post-new.php5.42 ▼0.0168.08 ▼773.20
Media Library /wp-admin/upload.php3.00 ▲0.0024.52 ▲0.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Autoblank for link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.56 ▼0.138.96 ▲2.6877.84 ▲1.32
Dashboard /wp-admin2,933 ▲416.11 ▲0.02114.58 ▼17.35171.82 ▼8.48
Posts /wp-admin/edit.php2,740 ▼33.24 ▼0.0069.91 ▲5.14141.61 ▲1.78
Add New Post /wp-admin/post-new.php3,813 ▲619.18 ▲0.42427.61 ▼25.84167.28 ▲1.09
Media Library /wp-admin/upload.php1,752 ▼05.48 ▼0.04140.91 ▼0.68186.03 ▲1.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/autoblank-for-link/autoblank-for-link.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
No tags were detected

autoblank-for-link/autoblank-for-link.php 92% from 13 tests

The primary PHP file in "Autoblank for link" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)

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
Good job! No executable or dangerous file extensions detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16247

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin