72% guest-author-name

Code Review | (Simply) Guest Author Name

WordPress plugin (Simply) Guest Author Name scored72%from 54 tests.

About plugin

  • Plugin page: guest-author-name
  • Plugin version: 4.34
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Aug 16, 2023
  • Number of updates: 56
  • Update frequency: every 50.9 days
  • Top authors: nomadcoder (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active /61,068 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.86ms] Passed 4 tests

An overview of server-side resources used by (Simply) Guest Author Name
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1939.83 ▼5.25
Dashboard /wp-admin3.47 ▲0.1246.09 ▼14.51
Posts /wp-admin/edit.php3.58 ▲0.2251.69 ▲1.64
Add New Post /wp-admin/post-new.php6.05 ▲0.17104.98 ▲10.44
Media Library /wp-admin/upload.php3.39 ▲0.1636.45 ▼1.30
Guest Author Name /wp-admin/options-general.php?page=guest_author_name3.3331.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for (Simply) Guest Author Name
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.21 ▼1.171.55 ▼0.7939.60 ▼18.24
Dashboard /wp-admin2,225 ▲435.83 ▲0.9596.47 ▼25.3942.01 ▼1.86
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0138.61 ▲1.0037.52 ▲3.95
Add New Post /wp-admin/post-new.php6,265 ▲4,73726.01 ▲2.94854.96 ▲164.2458.53 ▲2.58
Media Library /wp-admin/upload.php1,407 ▲194.20 ▲0.0195.41 ▼11.9042.52 ▼3.89
Guest Author Name /wp-admin/options-general.php?page=guest_author_name9012.0322.7027.32

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=guest_author_name
    • > Notice in wp-content/plugins/guest-author-name/sfly-guest-author-settings.php+229
    Trying to access array offset on value of type bool

SRP 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/guest-author-name/sfly-guest-author.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guest-author-name/sfly-guest-author-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guest-author-name/guest-author-notices.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === guest-author-name === )
  • Screenshots: These screenshots require images: #1 (Override the post Author), #2 (Post with Guest Author), #3 (Settings Page)
Please take inspiration from this readme.txt

guest-author-name/sfly-guest-author.php 85% from 13 tests

The main file in "(Simply) Guest Author Name" v. 4.34 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 290 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("guest-author-name.php" instead of "sfly-guest-author.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin852 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3211405831
JavaScript111921

PHP code Passed 2 tests

An short overview of 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.36
Average class complexity44.00
▷ Minimum class complexity9.00
▷ Maximum class complexity114.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png64.74KB24.03KB▼ 62.88%
screenshot-2.png27.26KB8.72KB▼ 68.02%
screenshot-3.png24.70KB5.84KB▼ 76.37%