78% published-by

Code Review | Published By

WordPress plugin Published By scored78%from 54 tests.

About plugin

  • Plugin page: published-by
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Apr 1, 2014
  • Latest release: Jun 11, 2018
  • Number of updates: 9
  • Update frequency: every 170.2 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.14ms] Passed 4 tests

An overview of server-side resources used by Published By
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0740.52 ▼0.24
Dashboard /wp-admin3.41 ▲0.0747.35 ▼3.40
Posts /wp-admin/edit.php3.53 ▲0.1350.77 ▼1.09
Add New Post /wp-admin/post-new.php6.00 ▲0.0797.76 ▼7.81
Media Library /wp-admin/upload.php3.33 ▲0.0642.06 ▲3.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Published By: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.371.66 ▼0.0447.30 ▲2.28
Dashboard /wp-admin2,195 ▲155.54 ▼0.1182.32 ▼6.0037.68 ▼8.99
Posts /wp-admin/edit.php2,118 ▲152.01 ▲0.0134.78 ▼4.2432.99 ▼1.29
Add New Post /wp-admin/post-new.php1,526 ▼023.54 ▲0.46652.99 ▼7.4666.38 ▲4.90
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0695.84 ▼10.6841.93 ▼2.88

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/published-by/tests/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/published-by/tests/bootstrap.php on line 17
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/published-by/tests/bootstrap.php on line 17

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

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Screenshot #4 (A screenshot of the post listing dropdown for filtering posts by publishing user.) image required
You can look at the official readme.txt

published-by/published-by.php Passed 13 tests

This is the main PHP file of "Published By" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
133 characters long description:
Track which user actually published a post, separate from who created the post. Display that info as a column in admin post listings.

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
No dangerous file extensions were detected628 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4236295581
Bourne Shell17322
XML10014
Markdown113011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity23.50
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1828.57%
▷ Public methods5993.65%
▷ Protected methods00.00%
▷ Private methods46.35%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected