94% wpi-multiple-contributors

Code Review | Wpi Multiple Contributors

WordPress plugin Wpi Multiple Contributors scored 94% from 54 tests.

About plugin

  • Plugin page: wpi-multiple-cont...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Apr 2, 2016
  • Latest release: Apr 2, 2016
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: prajakta ghole (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 623 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼139.55ms] Passed 4 tests

This is a short check of server-side resources used by Wpi Multiple Contributors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.83 ▲15.60
Dashboard /wp-admin3.08 ▲0.0344.66 ▲4.68
Posts /wp-admin/edit.php3.13 ▲0.0242.16 ▼3.80
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.27 ▼561.64
Media Library /wp-admin/upload.php3.02 ▲0.0234.38 ▲2.55

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Wpi Multiple Contributors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲12316.30 ▲0.5910.49 ▲1.2847.31 ▼0.88
Dashboard /wp-admin2,967 ▲335.94 ▼0.26135.57 ▼11.05110.90 ▼1.37
Posts /wp-admin/edit.php2,736 ▼32.70 ▼0.0275.68 ▲11.5488.22 ▲4.75
Add New Post /wp-admin/post-new.php1,906 ▲40618.82 ▲0.03367.84 ▼11.34120.67 ▲12.31
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.00148.65 ▼7.96127.08 ▲2.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'Interface_Meta_Box' not found in wp-content/plugins/wpi-multiple-contributors/wp-contributors-init.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: multiple-contributors, post co-authors, co-authors

wpi-multiple-contributors/wpi-multiple-contributors.php Passed 13 tests

The primary PHP file in "Wpi Multiple Contributors" version 1.0 is used by WordPress to initiate all plugin functionality
56 characters long description:
This plugin displays more than one author-name on a post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin144 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP38528115
CSS17029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected