78% overwrite-author-name

Code Review | Overwrite Author Name

WordPress plugin Overwrite Author Name scored78%from 54 tests.

About plugin

  • Plugin page: overwrite-author-...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Jul 6, 2023
  • Number of updates: 81
  • Update frequency: every 43.3 days
  • Top authors: JustinTicktock (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼10.44ms] Passed 4 tests

A check of server-side resources used by Overwrite Author Name
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1235.36 ▼4.80
Dashboard /wp-admin3.43 ▲0.1349.70 ▼5.47
Posts /wp-admin/edit.php3.55 ▲0.1945.47 ▼5.06
Add New Post /wp-admin/post-new.php6.01 ▲0.1281.10 ▼26.43
Media Library /wp-admin/upload.php3.36 ▲0.1235.46 ▲1.10

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Overwrite Author Name
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.56 ▼1.071.71 ▲0.1440.47 ▼3.67
Dashboard /wp-admin2,207 ▲225.86 ▲0.0199.07 ▼4.6240.73 ▼2.53
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0041.08 ▲3.4933.95 ▲3.38
Add New Post /wp-admin/post-new.php1,536 ▲323.32 ▲0.04679.72 ▲77.6863.05 ▼3.55
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.09100.02 ▲2.0243.64 ▼0.32
Overwrite Author /wp-admin/oan_settings.php260.440.1113.45

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

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

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 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/overwrite-author-name/includes/register.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/oan_settings.php
    • > Network (severe)
    wp-admin/oan_settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === overwrite-author-name === )
You can look at the official readme.txt

overwrite-author-name/overwrite-author-name.php 92% from 13 tests

Analyzing the main PHP file in "Overwrite Author Name" version 2.1
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.80
▷ Minimum class complexity2.00
▷ Maximum class complexity58.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3291.43%
▷ Protected methods00.00%
▷ Private methods38.57%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin