84% wp-remove-author-url-and-comment-links

Code Review | Disable Author Url and Comment Links

WordPress plugin Disable Author Url and Comment Links scored84%from 54 tests.

About plugin

  • Plugin page: wp-remove-author-...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2012
  • Latest release: Jul 22, 2012
  • Number of updates: 22
  • Update frequency: every 7.6 days
  • Top authors: osamashabrez (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /10,500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼1.77ms] Passed 4 tests

An overview of server-side resources used by Disable Author Url and Comment Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2242.05 ▼3.04
Dashboard /wp-admin3.46 ▲0.1651.66 ▼0.83
Posts /wp-admin/edit.php3.64 ▲0.2951.20 ▼3.09
Add New Post /wp-admin/post-new.php6.11 ▲0.22100.09 ▲14.97
Media Library /wp-admin/upload.php3.45 ▲0.2237.92 ▼0.11
DAUnCL Settings /wp-admin/options-general.php?page=dauncl_settings3.4234.88

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
DAUnCL_settings
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Disable Author Url and Comment Links: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.176.68 ▲4.8742.89 ▼1.91
Dashboard /wp-admin2,225 ▲224.85 ▼0.02110.73 ▲2.8140.78 ▲0.26
Posts /wp-admin/edit.php2,104 ▲42.05 ▲0.0639.60 ▲2.5836.98 ▲5.21
Add New Post /wp-admin/post-new.php1,548 ▲823.03 ▼0.29653.92 ▼69.6864.68 ▲7.03
Media Library /wp-admin/upload.php1,404 ▲14.21 ▼0.01100.17 ▼11.7444.84 ▼1.26
DAUnCL Settings /wp-admin/options-general.php?page=dauncl_settings9242.0526.0238.39

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • DAUnCL_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-remove-author-url-and-comment-links/Disabl-Author-Url-and-Comment-Links.php:13

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: remove comment links, comment spam, remove author link, remove comment spam, akismet...

wp-remove-author-url-and-comment-links/Disabl-Author-Url-and-Comment-Links.php 85% from 13 tests

The main PHP file in "Disable Author Url and Comment Links" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-remove-author-url-and-comment-links.php" instead of "Disabl-Author-Url-and-Comment-Links.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 395 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
There were no executable files found in this plugin1,154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21672061,154

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity143.00
▷ Minimum class complexity122.00
▷ Maximum class complexity164.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods77
▷ Static methods00.00%
▷ Public methods6179.22%
▷ Protected methods1620.78%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
There were not PNG files found in your plugin