84% at-multiauthor

Code Review | AT MultiAuthor

WordPress plugin AT MultiAuthor scored84%from 54 tests.

About plugin

  • Plugin page: at-multiauthor
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 31, 2016
  • Latest release: Jan 22, 2017
  • Number of updates: 8
  • Update frequency: every 2.5 days
  • Top authors: thinkatat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by AT MultiAuthor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.33 ▼1.39
Dashboard /wp-admin3.37 ▲0.0744.71 ▼2.11
Posts /wp-admin/edit.php3.49 ▲0.1345.48 ▲0.73
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.73 ▼6.74
Media Library /wp-admin/upload.php3.30 ▲0.0730.67 ▼1.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for AT MultiAuthor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.42 ▼0.961.66 ▼0.1241.21 ▼3.47
Dashboard /wp-admin2,203 ▲185.84 ▲0.9594.05 ▼7.2639.14 ▼5.00
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0433.98 ▼0.6033.64 ▼3.81
Add New Post /wp-admin/post-new.php6,246 ▲4,72722.01 ▼1.31851.53 ▲160.2764.01 ▲20.52
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0598.71 ▼0.0941.93 ▼1.91

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/at-multiauthor/includes/class-backend.php
    • > /wp-content/plugins/at-multiauthor/includes/class-main.php
    • > /wp-content/plugins/at-multiauthor/at-multiauthor.php
    • > /wp-content/plugins/at-multiauthor/uninstall.php
    • > /wp-content/plugins/at-multiauthor/includes/class-frontend.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
4 plugin tags: author, multiple, contributors, post

at-multiauthor/at-multiauthor.php Passed 13 tests

The main file in "AT MultiAuthor" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
32 characters long description:
One post, multiple contributors!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,476 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35633882,664
CSS212519568
PHP670165234
Markdown13010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%