84% wp-multi-author

Code Review | WP Multi Author

WordPress plugin WP Multi Author scored84%from 54 tests.

About plugin

  • Plugin page: wp-multi-author
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Feb 22, 2020
  • Number of updates: 3
  • Update frequency: every 144.3 days
  • Top authors: aagjalpankaj (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP Multi Author
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.67 ▲3.29
Dashboard /wp-admin3.38 ▲0.0751.14 ▲3.63
Posts /wp-admin/edit.php3.49 ▲0.1351.16 ▲4.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0986.08 ▼0.20
Media Library /wp-admin/upload.php3.30 ▲0.0734.45 ▼2.93

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Multi Author
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.20 ▼1.484.72 ▲2.9443.74 ▼3.21
Dashboard /wp-admin2,206 ▲154.84 ▼0.21106.24 ▲0.5738.56 ▼2.81
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0341.13 ▼0.2138.41 ▲2.91
Add New Post /wp-admin/post-new.php6,471 ▲4,95220.22 ▼3.02887.30 ▲194.1563.93 ▼0.15
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.0393.49 ▼12.9141.43 ▼4.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-multi-author/includes/class-backend.php
    • > /wp-content/plugins/wp-multi-author/uninstall.php
    • > /wp-content/plugins/wp-multi-author/includes/class-main.php
    • > /wp-content/plugins/wp-multi-author/includes/class-frontend.php
    • > /wp-content/plugins/wp-multi-author/wp-multi-author.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

wp-multi-author/wp-multi-author.php Passed 13 tests

The principal PHP file in "WP Multi Author" v. 1.0.1 is loaded by WordPress automatically on each request
32 characters long description:
One post, multiple contributors!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,472 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35633882,664
CSS312719574
PHP676163234

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.33
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/select2/select2.png0.60KB0.99KB0.00%