84% show-authors-in-page-list

Code Review | Show Authors in Page Lists

WordPress plugin Show Authors in Page Lists scored84%from 54 tests.

About plugin

  • Plugin page: show-authors-in-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 20, 2011
  • Latest release: Apr 3, 2020
  • Number of updates: 176
  • Update frequency: every 18.2 days
  • Top authors: oqm4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.21ms] Passed 4 tests

Server-side resources used by Show Authors in Page Lists
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.21 ▼0.82
Dashboard /wp-admin3.32 ▲0.0143.35 ▼3.95
Posts /wp-admin/edit.php3.37 ▲0.0143.35 ▼3.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.36 ▼4.71
Media Library /wp-admin/upload.php3.24 ▲0.0134.36 ▼0.81

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Show Authors in Page Lists
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.54 ▼0.682.17 ▲0.3544.56 ▼0.34
Dashboard /wp-admin2,209 ▲204.86 ▼0.10108.39 ▼14.3638.91 ▼9.18
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0134.99 ▲0.2433.03 ▼1.08
Add New Post /wp-admin/post-new.php1,533 ▲1423.58 ▲0.44676.00 ▼34.9763.91 ▼1.08
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0492.84 ▼4.9342.31 ▼0.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/show-authors-in-page-list/show-authors-in-page-list.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: author, function, plugin, wp_list_pages

show-authors-in-page-list/show-authors-in-page-list.php 92% from 13 tests

The primary PHP file in "Show Authors in Page Lists" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 607 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13926
Markdown116021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
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
1 PNG file occupies 0.07MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
sh-logo.png73.13KB4.09KB▼ 94.41%