10% post-co-authors

Code Review | Post Co-Authors

WordPress plugin Post Co-Authors scored10%from 54 tests.

About plugin

  • Plugin page: post-co-authors
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 24, 2017
  • Latest release: Jan 24, 2017
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: itcoderr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,766 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'pcauthor_activate_post_co_authors' not found or invalid function name

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.07ms] Passed 4 tests

Server-side resources used by Post Co-Authors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.50 ▼0.59
Dashboard /wp-admin3.40 ▲0.0946.25 ▼3.07
Posts /wp-admin/edit.php3.51 ▲0.1544.74 ▼16.16
Add New Post /wp-admin/post-new.php6.00 ▲0.1289.48 ▲3.56
Media Library /wp-admin/upload.php3.32 ▲0.0939.65 ▲5.14
Co Authors /wp-admin/options-general.php?page=co_author_options3.2628.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Post Co-Authors: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲14513.56 ▼0.695.46 ▲3.4543.53 ▼0.35
Dashboard /wp-admin2,208 ▲235.83 ▲0.97102.48 ▼9.6941.08 ▼3.30
Posts /wp-admin/edit.php2,100 ▲82.02 ▼0.0339.25 ▲3.6335.65 ▲2.56
Add New Post /wp-admin/post-new.php1,521 ▼1223.05 ▼0.22653.83 ▼30.3362.58 ▲0.35
Media Library /wp-admin/upload.php1,393 ▲54.25 ▲0.04107.00 ▲6.1344.79 ▼3.46
Co Authors /wp-admin/options-general.php?page=co_author_options7882.0624.3223.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'pcauthor_deactivate_post_co_authors' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=co_author_options
    • > Notice in wp-content/plugins/post-co-authors/post-co-authors.php+281
    Undefined variable: checked

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/post-co-authors/public/partials/post-co-authors-public-display.php
    • > /wp-content/plugins/post-co-authors/admin/partials/post-co-authors-admin-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-co-authors/post-co-authors.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: multi authors, author, dynamic authors, multi-authors, custom post...

post-co-authors/post-co-authors.php Passed 13 tests

Analyzing the main PHP file in "Post Co-Authors" version 1.0.0
64 characters long description:
This plugin is Allows multiple authors to be assigned to a post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin392 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11143532386
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin