90% disable-author-archives

Code Review | Disable Author Archives

WordPress plugin Disable Author Archives scored90%from 54 tests.

About plugin

  • Plugin page: disable-author-ar...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2018
  • Latest release: Aug 12, 2023
  • Number of updates: 21
  • Update frequency: every 88.7 days
  • Top authors: freemp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10,000+ active /35,203 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.97ms] Passed 4 tests

Analyzing server-side resources used by Disable Author Archives
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.29 ▼5.50
Dashboard /wp-admin3.31 ▲0.0144.15 ▼3.81
Posts /wp-admin/edit.php3.36 ▲0.0145.73 ▲2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.35 ▼9.42
Media Library /wp-admin/upload.php3.23 ▲0.0135.02 ▼1.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Author Archives
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.67 ▼0.881.70 ▼0.1239.36 ▼9.84
Dashboard /wp-admin2,206 ▲155.85 ▼0.03109.54 ▲6.4043.76 ▼0.08
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0139.52 ▲4.4535.32 ▲1.73
Add New Post /wp-admin/post-new.php1,547 ▲423.28 ▲5.04604.06 ▼6.1449.20 ▼3.69
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0299.43 ▼3.5243.06 ▼1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
7 plugin tags: links, pages, 404, archives, author...

disable-author-archives/disable-author-archives.php Passed 13 tests

The primary PHP file in "Disable Author Archives" version 1.3.1 is used by WordPress to initiate all plugin functionality
95 characters long description:
Disables author archives and makes the web server return status code 404 ('Not Found') instead.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP231421

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin