84% date-published-shortcode

Code Review | Date Published Shortcode

WordPress plugin Date Published Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: date-published-sh...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: May 4, 2022
  • Number of updates: 12
  • Update frequency: every 120.8 days
  • Top authors: jonahhoj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /2,462 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.45ms] Passed 4 tests

An overview of server-side resources used by Date Published Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.41 ▼2.66
Dashboard /wp-admin3.31 ▲0.0050.00 ▼4.35
Posts /wp-admin/edit.php3.36 ▲0.0050.61 ▼2.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.67 ▼12.24
Media Library /wp-admin/upload.php3.23 ▲0.0038.37 ▲3.43

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Date Published Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.301.61 ▼0.0839.63 ▼5.23
Dashboard /wp-admin2,189 ▲185.56 ▼0.0888.67 ▼9.1944.00 ▲1.14
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0637.13 ▼2.8035.44 ▼1.18
Add New Post /wp-admin/post-new.php1,526 ▼523.30 ▲0.19658.14 ▲58.0149.68 ▲2.34
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0395.19 ▼7.0244.55 ▲1.26

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 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/date-published-shortcode/articledate.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: shortcode, publish, published, date, posts...

date-published-shortcode/articledate.php 92% from 13 tests

The main PHP script in "Date Published Shortcode" version 0.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("date-published-shortcode.php" instead of "articledate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin