84% multiple-user-post

Code Review | Multiple User Post

WordPress plugin Multiple User Post scored84%from 54 tests.

About plugin

  • Plugin page: multiple-user-post
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Jun 20, 2016
  • Latest release: Jul 5, 2016
  • Number of updates: 9
  • Update frequency: every 2.0 days
  • Top authors: kapillohakare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /960 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.03MB] [CPU: ▲0.37ms] Passed 4 tests

An overview of server-side resources used by Multiple User Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.18 ▲3.51
Dashboard /wp-admin3.33 ▲0.0351.06 ▲0.66
Posts /wp-admin/edit.php3.39 ▲0.0348.58 ▲0.64
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.79 ▼2.00
Media Library /wp-admin/upload.php3.26 ▲0.0336.47 ▲2.18
All Unreads /wp-admin/edit.php?post_type=unread3.3036.18
Add New /wp-admin/post-new.php?post_type=unread3.3849.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Multiple User Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7513.63 ▼0.721.83 ▼0.0344.07 ▼1.33
Dashboard /wp-admin2,230 ▲535.58 ▼0.01108.34 ▲12.5641.93 ▲5.48
Posts /wp-admin/edit.php2,147 ▲472.55 ▲0.5641.44 ▲5.8232.75 ▼4.90
Add New Post /wp-admin/post-new.php6,480 ▲4,95228.73 ▲5.88935.77 ▲235.4341.31 ▼19.92
Media Library /wp-admin/upload.php1,441 ▲445.11 ▲0.90108.12 ▲5.4942.97 ▼3.70
All Unreads /wp-admin/edit.php?post_type=unread1,1192.5139.1534.80
Add New /wp-admin/post-new.php?post_type=unread2,2338.41175.3665.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/multiple-user-post/multiple-user-post.php

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: more editors, admin user roles, more users, multiple user post, multiple user to single post...

multiple-user-post/multiple-user-post.php Passed 13 tests

The main file in "Multiple User Post" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
This plugin will assign the multiple users to post.

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 plugin12,818 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22,3981,60212,635
PHP12529183

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected