90% automatic-post-date-filler

Code Review | Automatic Post Date Filler

WordPress plugin Automatic Post Date Filler scored90%from 54 tests.

About plugin

  • Plugin page: automatic-post-da...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Apr 30, 2016
  • Number of updates: 6
  • Update frequency: every 169.8 days
  • Top authors: Devtard (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,983 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
Installer ran successfully

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

A check of server-side resources used by Automatic Post Date Filler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.41 ▼4.43
Dashboard /wp-admin3.33 ▲0.0350.57 ▼6.97
Posts /wp-admin/edit.php3.38 ▲0.0247.78 ▼0.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.56 ▼3.82
Media Library /wp-admin/upload.php3.25 ▲0.0236.60 ▲1.31
Automatic Post Date Filler /wp-admin/options-general.php?page=automatic-post-date-filler3.2342.04

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automatic Post Date Filler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.12 ▼1.264.72 ▲2.7942.76 ▲0.06
Dashboard /wp-admin2,218 ▲304.95 ▲0.09109.32 ▲5.7041.10 ▲0.31
Posts /wp-admin/edit.php2,103 ▲142.01 ▼0.1339.64 ▲2.3336.44 ▲1.61
Add New Post /wp-admin/post-new.php1,554 ▲2023.07 ▼0.29621.19 ▼63.6257.22 ▼2.28
Media Library /wp-admin/upload.php1,400 ▲124.25 ▲0.0196.25 ▼15.2641.22 ▼4.16
Automatic Post Date Filler /wp-admin/options-general.php?page=automatic-post-date-filler1,1501.8426.9042.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

automatic-post-date-filler/automatic-post-date-filler.php Passed 13 tests

The primary PHP file in "Automatic Post Date Filler" version 1.2 is used by WordPress to initiate all plugin functionality
59 characters long description:
Automatically sets custom date and time when editing posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin856 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2176189832
CSS16024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity151.00
▷ Minimum class complexity151.00
▷ Maximum class complexity151.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods2769.23%
▷ Protected methods00.00%
▷ Private methods1230.77%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/sprite-icons.png1.27KB1.06KB▼ 16.28%