78% hide-author-archive

Code Review | Hide Author Archive

WordPress plugin Hide Author Archive scored 78% from 54 tests.

About plugin

  • Plugin page: hide-author-archive
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Mar 28, 2022
  • Number of updates: 8
  • Update frequency: every 65.3 days
  • Top authors: kuno1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 5,890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.62ms] Passed 4 tests

Server-side resources used by Hide Author Archive
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.34 ▼2.20
Dashboard /wp-admin3.32 ▲0.0244.99 ▲0.06
Posts /wp-admin/edit.php3.37 ▲0.0246.74 ▼2.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.24 ▼17.63
Media Library /wp-admin/upload.php3.24 ▲0.0235.93 ▲3.75

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Author Archive
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.51 ▲0.111.81 ▼0.2541.32 ▼7.90
Dashboard /wp-admin2,206 ▲184.85 ▼0.02103.35 ▼9.4139.17 ▲0.46
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0242.51 ▲0.3636.56 ▲0.00
Add New Post /wp-admin/post-new.php1,533 ▲1923.17 ▲5.67657.37 ▲20.6158.17 ▲10.58
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.04100.60 ▲5.0846.24 ▲5.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hide-author-archive/hide-author-archive.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-author-archive/includes/functions-rest.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-author-archive/includes/functions-admin.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: permalink, url, author, archive

hide-author-archive/hide-author-archive.php 85% from 13 tests

The primary PHP file in "Hide Author Archive" version 1.1.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

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
No dangerous file extensions were detected141 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP41584106
JSON10035

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.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
There were not PNG files found in your plugin