74% additional-authors

Code Review | Additional Authors

WordPress plugin Additional Authors scored74%from 54 tests.

About plugin

  • Plugin page: additional-authors
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 37
  • Update frequency: every 62.2 days
  • Top authors: EdwardBock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,945 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.39ms] Passed 4 tests

Server-side resources used by Additional Authors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1159.26 ▲22.36
Dashboard /wp-admin3.43 ▲0.1245.05 ▼3.42
Posts /wp-admin/edit.php3.48 ▲0.1347.42 ▼9.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.35 ▲0.31
Media Library /wp-admin/upload.php3.28 ▲0.0636.64 ▲2.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Additional Authors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.092.30 ▲0.7652.15 ▲7.77
Dashboard /wp-admin2,203 ▲185.84 ▼0.07103.54 ▼5.6838.59 ▼5.89
Posts /wp-admin/edit.php2,100 ▲111.97 ▼0.0439.92 ▲1.5235.04 ▼1.63
Add New Post /wp-admin/post-new.php1,695 ▲17622.44 ▼0.80668.73 ▼2.8635.90 ▼16.83
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0298.21 ▲3.4443.30 ▲3.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_additional_authors
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/additional-authors/templates/additional-authors-the-authors.tpl.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/additional-authors/public-functions.php:60
    • > PHP Fatal error
      Uncaught Error: Class 'AdditionalAuthors\\Plugin' not found in wp-content/plugins/additional-authors/deprecated.php:7
    • > PHP Notice
      Undefined variable: additional_authors_ids in wp-content/plugins/additional-authors/templates/additional-authors-the-authors-posts-links.tpl.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'ph_user_destination' not found in wp-content/plugins/additional-authors/inc/migrate.additional-author-destination.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_author_meta() in wp-content/plugins/additional-authors/templates/additional-authors-the-author-posts-link.tpl.php:7
    • > PHP Notice
      Undefined variable: additional_authors_ids in wp-content/plugins/additional-authors/templates/additional-authors-the-authors.tpl.php on line 10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/additional-authors/templates/additional-authors-the-authors-posts-links.tpl.php on line 7

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: meta fields, author

additional-authors/additional-authors.php 92% from 13 tests

The main PHP script in "Additional Authors" version 1.3.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,468 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP313706331,417
PO File1101145
CSS2003
JavaScript3033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.10
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes20
▷ Abstract classes15.00%
▷ Concrete classes1995.00%
▷ Final classes00.00%
Methods98
▷ Static methods99.18%
▷ Public methods9192.86%
▷ Protected methods00.00%
▷ Private methods77.14%
Functions14
▷ Named functions642.86%
▷ Anonymous functions857.14%
Constants32
▷ Global constants00.00%
▷ Class constants32100.00%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin