93% disable-author-pages

Code Review | Disable Author Pages

WordPress plugin Disable Author Pages scored 93% from 53 tests.

About plugin

  • Plugin page: disable-author-pages
  • Plugin version: 0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 5.8.1
  • First release: Jun 27, 2013
  • Latest release: Mar 2, 2017
  • Number of updates: 24
  • Update frequency: every 56.0 days
  • Top authors: f.staude (100%)

Code review

53 tests

User reviews

17 reviews

Install metrics

10,000+ active / 44,540 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.04MB] [CPU: ▼456.17ms] Passed 4 tests

A check of server-side resources used by Disable Author Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0448.25 ▲8.98
Dashboard /wp-admin3.10 ▲0.0555.25 ▲4.74
Posts /wp-admin/edit.php3.15 ▲0.0541.99 ▼13.00
Add New Post /wp-admin/post-new.php5.46 ▲0.0485.08 ▼1,798.43
Media Library /wp-admin/upload.php3.04 ▲0.0436.66 ▼17.99
Author Pages /wp-admin/options-general.php?page=disable-author-pages/class-disable-author-pages.php3.0226.09

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Disable Author Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,653 ▲7115.50 ▼0.257.80 ▼3.4659.61 ▲2.82
Dashboard /wp-admin2,957 ▲1046.14 ▲0.30170.11 ▼21.90133.77 ▼0.26
Posts /wp-admin/edit.php2,711 ▲52.70 ▲0.0295.66 ▲9.41121.09 ▲13.01
Add New Post /wp-admin/post-new.php1,659 ▲18018.22 ▲0.09352.27 ▼54.92108.20 ▼50.66
Media Library /wp-admin/upload.php1,777 ▲55.04 ▲0.03156.23 ▼8.47117.33 ▼33.82
Author Pages /wp-admin/options-general.php?page=disable-author-pages/class-disable-author-pages.php1,1202.1155.07101.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/disable-author-pages/disable-author-pages.php:46

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === disable-author-pages === )
You can look at the official readme.txt

disable-author-pages/disable-author-pages.php 85% from 13 tests

The main PHP file in "Disable Author Pages" ver. 0.11 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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 plugin252 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23188141
PO File23785111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods8100.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 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin