84% widget-for-co-authors

Code Review | Co-Authors Widget

WordPress plugin Co-Authors Widget scored84%from 54 tests.

About plugin

  • Plugin page: widget-for-co-aut...
  • Plugin version: 0.6
  • PHP compatiblity: 7.0.18+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2018
  • Latest release: Oct 13, 2021
  • Number of updates: 8
  • Update frequency: every 169.6 days
  • Top authors: ulaulaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.38ms] Passed 4 tests

An overview of server-side resources used by Co-Authors Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.28 ▼0.06
Dashboard /wp-admin3.32 ▲0.0147.17 ▼3.54
Posts /wp-admin/edit.php3.37 ▲0.0151.50 ▲0.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.56 ▼14.25
Media Library /wp-admin/upload.php3.24 ▲0.0142.78 ▲3.95

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_blog_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Co-Authors Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.22 ▼0.342.32 ▲0.6239.48 ▼3.86
Dashboard /wp-admin2,195 ▲245.55 ▼0.0385.16 ▼11.4638.88 ▼3.88
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0933.95 ▼6.1036.14 ▼2.85
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▼0.21678.91 ▼33.6355.49 ▼12.58
Media Library /wp-admin/upload.php1,400 ▼04.35 ▲0.0994.11 ▼11.6842.09 ▼1.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_blog_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-for-co-authors/widget-for-co-authors.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: multi author, multiple authors, coauthors, authors, widget

widget-for-co-authors/widget-for-co-authors.php Passed 13 tests

The entry point to "Co-Authors Widget" version 0.6 is a PHP file that has certain tags in its header comment area
118 characters long description:
The plugin add a widget and a shortcode in order to show authors of an article. It is compatible with Co-Authors Plus.

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
Good job! No executable or dangerous file extensions detected152 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11928108
PO File17833
CSS10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin