90% post-date-randomizer

Code Review | Post Date Randomizer

WordPress plugin Post Date Randomizer scored90%from 54 tests.

About plugin

  • Plugin page: post-date-randomizer
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Nov 13, 2021
  • Number of updates: 39
  • Update frequency: every 40.5 days
  • Top authors: wellbeingtips (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10,000+ active /73,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.02ms] Passed 4 tests

This is a short check of server-side resources used by Post Date Randomizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.88 ▼3.99
Dashboard /wp-admin3.34 ▼0.0151.24 ▼17.28
Posts /wp-admin/edit.php3.39 ▲0.0348.90 ▼0.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.39 ▼13.23
Media Library /wp-admin/upload.php3.26 ▲0.0338.94 ▼1.56

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Date Randomizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.34 ▼0.221.73 ▼0.2643.75 ▲0.86
Dashboard /wp-admin2,211 ▲345.63 ▼0.0399.58 ▼3.0443.21 ▼2.53
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0734.22 ▼2.4735.60 ▼0.11
Add New Post /wp-admin/post-new.php1,539 ▲1122.99 ▲0.04663.92 ▲63.0753.58 ▲4.74
Media Library /wp-admin/upload.php1,410 ▲74.21 ▼0.0298.40 ▼4.6746.26 ▲2.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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: random post, random post dates, post dates, random dates

post-date-randomizer/post-date-randomizer.php 92% from 13 tests

The main file in "Post Date Randomizer" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12819132

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected