84% remove-author-pages

Code Review | Remove Author Pages

WordPress plugin Remove Author Pages scored84%from 54 tests.

About plugin

  • Plugin page: remove-author-pages
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.5
  • WordPress version: 6.3.1
  • First release: Nov 5, 2013
  • Latest release: Apr 17, 2016
  • Number of updates: 16
  • Update frequency: every 55.9 days
  • Top authors: viniweb (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

5,000+ active /26,365 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.55ms] Passed 4 tests

A check of server-side resources used by Remove Author Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.88 ▼6.10
Dashboard /wp-admin3.31 ▲0.0039.10 ▼9.48
Posts /wp-admin/edit.php3.36 ▲0.0044.83 ▲2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.24 ▼16.47
Media Library /wp-admin/upload.php3.23 ▲0.0032.17 ▼2.15

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Remove Author Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.121.72 ▼0.0937.76 ▼6.02
Dashboard /wp-admin2,203 ▲185.90 ▲0.99111.93 ▲4.1243.27 ▼2.03
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0340.28 ▲0.1835.01 ▼0.11
Add New Post /wp-admin/post-new.php1,533 ▲1323.20 ▲0.22652.58 ▲5.1053.27 ▲2.32
Media Library /wp-admin/upload.php1,385 ▼64.16 ▼0.0293.44 ▼7.7141.45 ▲0.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-author-pages/remove-author-pages.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: disable, remove, delete, author, pages

remove-author-pages/remove-author-pages.php Passed 13 tests

The primary PHP file in "Remove Author Pages" version 0.2 is used by WordPress to initiate all plugin functionality
65 characters long description:
Trigger 404 error on author pages and change author links to home

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15613

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin