79% publishpress-authors

Code Review | Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors

WordPress plugin Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors scored79%from 54 tests.

About plugin

  • Plugin page: publishpress-authors
  • Plugin version: 4.2.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2020
  • Latest release: Sep 4, 2023
  • Number of updates: 129
  • Update frequency: every 10.4 days
  • Top authors: publishpress (55.04%)ojopaul (26.36%)stevejburge (11.63%)andergmartins (9.3%)

Code review

54 tests

User reviews

66 reviews

Install metrics

10,000+ active /233,949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.08MB] [CPU: ▲24.59ms] Passed 4 tests

Server-side resources used by Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /7.14 ▲3.6759.90 ▲19.21
Dashboard /wp-admin7.55 ▲4.2178.96 ▲18.84
Posts /wp-admin/edit.php7.58 ▲4.2281.09 ▲37.68
Add New Post /wp-admin/post-new.php10.21 ▲4.33130.99 ▲32.06
Media Library /wp-admin/upload.php7.43 ▲4.2066.25 ▲28.23
Upgrade to Pro /wp-admin/admin.php?page=ppma-authors-menu-upgrade-link7.4267.61
Settings /wp-admin/admin.php?page=ppma-modules-settings7.5393.66

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 835 new files
Database: no new tables, 21 new options
New WordPress options
multiple_authors_polylang_integration_options
widget_multiple_authors_widget
multiple_authors_default_layouts_options
multiple_authors_multiple_authors_options
multiple_authors_rest_api_options
widget_recent-comments
theysaidso_admin_options
widget_multiple_authors_list_widget
publishpress-authors_wp_reviews_installed_on
PP_AUTHORS_VERSION
...

Browser metrics Passed 4 tests

Checking browser requirements for Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,014 ▲26815.16 ▲0.871.61 ▼0.3527.69 ▼15.28
Dashboard /wp-admin2,411 ▲2236.89 ▲1.83137.54 ▲24.1943.59 ▼3.38
Posts /wp-admin/edit.php2,533 ▲4443.95 ▲1.9070.99 ▲30.8033.06 ▼3.94
Add New Post /wp-admin/post-new.php1,690 ▲16221.65 ▲3.34689.97 ▲23.4059.01 ▲2.65
Media Library /wp-admin/upload.php1,464 ▲764.65 ▲0.5497.58 ▼19.9344.54 ▼3.75
Upgrade to Pro /wp-admin/admin.php?page=ppma-authors-menu-upgrade-link2,6604.0871.3977.45
Settings /wp-admin/admin.php?page=ppma-modules-settings2,9315.0497.92103.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 21 options
    • multiple_authors_rest_api_options
    • multiple_authors_default_layouts_options
    • multiple_authors_author_boxes_options
    • theysaidso_admin_options
    • widget_multiple_authors_list_widget
    • multiple_authors_author_custom_fields_options
    • db_upgraded
    • widget_multiple_authors_widget
    • publishpress_multiple_authors_settings_migrated_3_0_0
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/publishpress-authors/includes.php
    • > /wp-content/plugins/publishpress-authors/src/templates/parts/author-pages-list.php
    • > /wp-content/plugins/publishpress-authors/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php
    • > /wp-content/plugins/publishpress-authors/lib/vendor/publishpress/wordpress-version-notices/templates/top-notice/notice.php
    • > /wp-content/plugins/publishpress-authors/defines.php
    • > /wp-content/plugins/publishpress-authors/src/templates/taxonomy-author.php
    • > /wp-content/plugins/publishpress-authors/src/core/Factory.php
    • > /wp-content/plugins/publishpress-authors/src/templates/parts/author-pages-grid.php
    • > /wp-content/plugins/publishpress-authors/src/core/Capability.php
    • > /wp-content/plugins/publishpress-authors/src/core/Container.php
  • 156× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'PublishPress\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/publishpress-authors/lib/vendor/publishpress/pimple-pimple/lib/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/publishpress-authors/lib/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/publishpress-authors/lib/vendor/cmb2/cmb2/includes/CMB2.php:21
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/publishpress-authors/src/modules/settings/views/module.html.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/publishpress-authors/src/modules/settings/views/module.html.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'MultipleAuthors\\Classes\\Legacy\\Module' not found in wp-content/plugins/publishpress-authors/src/modules/author-boxes/author-boxes.php:35
    • > PHP Notice
      Undefined variable: linkURL in wp-content/plugins/publishpress-authors/lib/vendor/publishpress/wordpress-version-notices/templates/top-notice/notice.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/publishpress-authors/src/modules/settings/views/settings.html.php on line 6
    • > PHP Warning
      Class 'PublishPress\\WordpressVersionNotices\\Template\\TemplateInvalidArgumentsException' not found in wp-content/plugins/publishpress-authors/lib/vendor/publishpress/wordpress-version-notices/src/deprecated.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/publishpress-authors/lib/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: authors, guest authors, multiple authors, author layouts, author fields

publishpress-authors/publishpress-authors.php Passed 13 tests

The main file in "Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors" v. 4.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
92 characters long description:
PublishPress Authors allows you to add multiple authors and guest authors to WordPress posts

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 plugin104,805 lines of code in 654 files:
LanguageFilesBlank linesComment linesLines of code
PO File13020,07028,46346,725
PHP2056,41913,61629,060
JavaScript2592,5471,28513,211
CSS282,2651,27510,586
HTML12301,450
Sass17306291,411
JSX917301,075
Markdown22350722
JSON200502
SVG10063

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity23.61
▷ Minimum class complexity1.00
▷ Maximum class complexity406.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces26
Interfaces7
Traits1
Classes164
▷ Abstract classes137.93%
▷ Concrete classes15192.07%
▷ Final classes31.99%
Methods1,407
▷ Static methods35625.30%
▷ Public methods1,20485.57%
▷ Protected methods1178.32%
▷ Private methods866.11%
Functions158
▷ Named functions12478.48%
▷ Anonymous functions3421.52%
Constants75
▷ Global constants3850.67%
▷ Class constants3749.33%
▷ Public constants37100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
lib/vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
src/assets/img/publishpress-logo.png8.69KB8.91KB0.00%
lib/vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
lib/vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%