84% sf-author-url-control

Code Review | SF Author Url Control

WordPress plugin SF Author Url Control scored 84% from 54 tests.

About plugin

  • Plugin page: sf-author-url-con...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 16, 2012
  • Latest release: Apr 3, 2016
  • Number of updates: 38
  • Update frequency: every 38.1 days
  • Top authors: GregLone (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active / 18,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.94ms] Passed 4 tests

This is a short check of server-side resources used by SF Author Url Control
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.58 ▼4.90
Dashboard /wp-admin3.38 ▲0.0746.43 ▼2.79
Posts /wp-admin/edit.php3.49 ▲0.1351.65 ▼1.97
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.66 ▼18.10
Media Library /wp-admin/upload.php3.30 ▲0.0736.86 ▲4.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
sf_auc_first_message
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SF Author Url Control
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.131.72 ▼0.3145.35 ▲2.13
Dashboard /wp-admin2,206 ▲215.91 ▲0.87103.30 ▼2.4839.60 ▼4.93
Posts /wp-admin/edit.php2,092 ▼02.14 ▲0.1541.44 ▼0.9232.81 ▼1.91
Add New Post /wp-admin/post-new.php1,519 ▼1423.15 ▼0.07646.19 ▲32.2459.49 ▲5.23
Media Library /wp-admin/upload.php1,385 ▼34.26 ▼0.0798.89 ▼3.5741.98 ▼6.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • sf_auc_first_message
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sf-author-url-control/sf-author-url-control.php
    • > /wp-content/plugins/sf-author-url-control/inc/admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #2 in sf-author-url-control/assets to your readme.txt
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

sf-author-url-control/sf-author-url-control.php Passed 13 tests

The entry point to "SF Author Url Control" version 1.2 is a PHP file that has certain tags in its header comment area
51 characters long description:
Customize the url of your registered users profile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin470 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP213985284
PO File35041186

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected