74% visual-authors-page

Code Review | Visual Authors Page

WordPress plugin Visual Authors Page scored74%from 54 tests.

About plugin

  • Plugin page: visual-authors-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2016
  • Latest release: Oct 10, 2016
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: segapunk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /905 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.12ms] Passed 4 tests

This is a short check of server-side resources used by Visual Authors Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.20 ▼32.68
Dashboard /wp-admin2.08 ▼1.265.30 ▼53.70
Posts /wp-admin/edit.php2.09 ▼1.276.23 ▼37.84
Add New Post /wp-admin/post-new.php2.08 ▼3.805.92 ▼96.27
Media Library /wp-admin/upload.php2.08 ▼1.147.13 ▼24.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Visual Authors Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.72 ▼0.654.35 ▲2.7041.21 ▼2.48
Dashboard /wp-admin2,222 ▲705.84 ▲0.1598.71 ▼13.6538.77 ▼7.98
Posts /wp-admin/edit.php2,105 ▲162.00 ▲0.0139.41 ▼1.3735.00 ▲0.40
Add New Post /wp-admin/post-new.php1,528 ▼1423.04 ▲4.92673.71 ▲78.4654.96 ▲7.93
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.05111.38 ▲16.7646.63 ▲5.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vauthor-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-authors-page/visual-authors-page.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/visual-authors-page/visual-authors-page-admin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

visual-authors-page/visual-authors-page.php Passed 13 tests

The primary PHP file in "Visual Authors Page" version 1.0 is used by WordPress to initiate all plugin functionality
94 characters long description:
This "Visual Authors page" plugin display authors list in any page by placing shortcode on it.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected217 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23111112
JavaScript120289
CSS10013
Markdown1203

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin