10% molongui-authorship

Code Review | Author Box, Guest Author and Co-Authors for Your Posts - Molongui

WordPress plugin Author Box, Guest Author and Co-Authors for Your Posts - Molongui scored10%from 54 tests.

About plugin

  • Plugin page: molongui-authorship
  • Plugin version: 4.7.4
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Aug 28, 2015
  • Latest release: Dec 2, 2023
  • Number of updates: 388
  • Update frequency: every 7.9 days
  • Top authors: Molongui (100%)

Code review

54 tests

User reviews

143 reviews

Install metrics

10,000+ active /291,344 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/molongui-authorship/includes/activator.php+69
    Undefined index: guest_authors

Server metrics [RAM: ▲2.10MB] [CPU: ▲20.37ms] Passed 4 tests

A check of server-side resources used by Author Box, Guest Author and Co-Authors for Your Posts - Molongui
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.40 ▲1.9353.12 ▲7.98
Dashboard /wp-admin5.40 ▲2.0970.76 ▲17.42
Posts /wp-admin/edit.php5.82 ▲2.4687.16 ▲36.47
Add New Post /wp-admin/post-new.php8.18 ▲2.28116.49 ▲33.79
Media Library /wp-admin/upload.php5.32 ▲2.0858.20 ▲22.28
Tools /wp-admin/admin.php?page=molongui-authorship-tools5.6655.67
Help! /wp-admin/admin.php?page=molongui-authorship-help5.3254.64
Add New /wp-admin/admin.php?page=author-new5.3254.82
Author Box Editor /wp-admin/admin.php?page=author-box-editor5.6060.37
View All /wp-admin/admin.php?page=authors5.9063.42
Settings /wp-admin/admin.php?page=molongui-authorship6.5560.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 842 new files
Database: no new tables, 12 new options
New WordPress options
23
widget_recent-posts
molongui_authorship_db_version
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
molongui_authorship_cache_users
molongui_authorship_cache_guests
db_upgraded
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by Author Box, Guest Author and Co-Authors for Your Posts - Molongui
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,223 ▲46113.84 ▼0.405.42 ▲3.4826.11 ▼18.25
Dashboard /wp-admin2,470 ▲2904.95 ▼0.59116.44 ▲20.5156.64 ▲11.52
Posts /wp-admin/edit.php2,414 ▲3112.80 ▲0.8148.21 ▲5.9435.39 ▼3.63
Add New Post /wp-admin/post-new.php6,544 ▲5,01826.33 ▲2.85820.86 ▲224.3043.14 ▼18.42
Media Library /wp-admin/upload.php1,566 ▲1634.33 ▲0.1797.64 ▼3.5947.49 ▲3.91
Tools /wp-admin/admin.php?page=molongui-authorship-tools1,3772.3845.2648.49
Help! /wp-admin/admin.php?page=molongui-authorship-help1,5753.7284.7938.60
Add New /wp-admin/admin.php?page=author-new1,1432.1344.2235.68
Author Box Editor /wp-admin/admin.php?page=author-box-editor8,8414.04158.65139.76
View All /wp-admin/admin.php?page=authors1,3261.9238.1135.58
Settings /wp-admin/admin.php?page=molongui-authorship4,9933.40105.1885.41

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
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • molongui_authorship_db_version
    • molongui_authorship_options
    • 23
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=author-box-editor
    • > Notice in wp-content/plugins/molongui-authorship/includes/helpers/author/box/render.php+73
    Trying to get property 'ID' of non-object

SRP 0% 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
Please take a closer look at the following
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/molongui-authorship/views/author-box/profile/html-layout-1.php
    • > /wp-content/plugins/molongui-authorship/views/author-box/parts/html-name.php
    • > /wp-content/plugins/molongui-authorship/views/author-box/parts/html-avatar.php
    • > /wp-content/plugins/molongui-authorship/views/author-box/parts/html-meta.php
    • > /wp-content/plugins/molongui-authorship/trunk/views/author-box/parts/html-meta.php
    • > /wp-content/plugins/molongui-authorship/trunk/views/author-box/parts/html-avatar.php
    • > /wp-content/plugins/molongui-authorship/trunk/views/author-box/parts/html-name.php
    • > /wp-content/plugins/molongui-authorship/trunk/views/author-box/profile/html-layout-1.php
  • 90× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'MOLONGUI_AUTHORSHIP_DIRviews/author-box/parts/html-bio.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/molongui-authorship/views/author-box/profile/html-layout-1.php on line 28
    • > PHP Notice
      Undefined variable: author in wp-content/plugins/molongui-authorship/trunk/views/author-box/parts/html-name.php on line 27
    • > PHP Warning
      include(MOLONGUI_AUTHORSHIP_DIRviews/author-box/parts/html-bio.php): failed to open stream: No such file or directory in wp-content/plugins/molongui-authorship/trunk/views/author-box/profile/html-layout-1.php on line 28
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/molongui-authorship/views/author-box/related/html-layout-2.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/molongui-authorship/views/author-box/related/html-layout-1.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/molongui-authorship/trunk/views/author-box/parts/html-name.php on line 27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/molongui-authorship/views/author-box/parts/html-meta.php on line 2
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/molongui-authorship/views/author-box/parts/html-bio.php on line 2
    • > PHP Notice
      Undefined variable: random_id in wp-content/plugins/molongui-authorship/views/author-box/parts/html-tabs.php on line 9
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/molongui-authorship/trunk/views/author-box/html-layout.php on line 2

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

molongui-authorship/molongui-authorship.php 85% from 13 tests

Analyzing the main PHP file in "Author Box, Guest Author and Co-Authors for Your Posts - Molongui" version 4.7.4
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.5" instead of "5.5.0")

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 plugin45,587 lines of code in 324 files:
LanguageFilesBlank linesComment linesLines of code
PHP2641,88437426,247
PO File75,5378,88013,072
JavaScript211,1477835,044
SVG31490727
CSS256453425
XML20051
Markdown27021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity50.29
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes42
▷ Abstract classes49.52%
▷ Concrete classes3890.48%
▷ Final classes25.26%
Methods578
▷ Static methods183.11%
▷ Public methods30452.60%
▷ Protected methods21637.37%
▷ Private methods5810.03%
Functions1,268
▷ Named functions89470.50%
▷ Anonymous functions37429.50%
Constants192
▷ Global constants2010.42%
▷ Class constants17289.58%
▷ Public constants172100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/assets/img/common/masthead_logo.png1.84KB0.75KB▼ 59.06%
assets/img/common/masthead_logo.png1.84KB0.75KB▼ 59.06%
assets/img/plugin_logo.png1.90KB1.57KB▼ 17.59%
trunk/assets/img/common/lock.png0.28KB0.19KB▼ 31.01%
trunk/assets/img/plugin_logo.png1.90KB1.57KB▼ 17.59%