89% autodater

Code Review | AutoDater

WordPress plugin AutoDater scored 89% from 54 tests.

About plugin

  • Plugin page: autodater
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Nov 16, 2017
  • Number of updates: 11
  • Update frequency: every 20.4 days
  • Top authors: krnmsaikrishna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by AutoDater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0234.66 ▼27.44
Dashboard /wp-admin3.32 ▲0.0145.00 ▼0.28
Posts /wp-admin/edit.php3.37 ▲0.0151.70 ▲7.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.92 ▼13.20
Media Library /wp-admin/upload.php3.24 ▲0.0135.12 ▼0.10

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

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

Browser metrics Passed 4 tests

AutoDater: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11513.36 ▼0.951.83 ▼0.1531.33 ▼13.30
Dashboard /wp-admin2,267 ▲795.84 ▲0.96110.90 ▼0.9576.88 ▲36.73
Posts /wp-admin/edit.php2,108 ▲161.99 ▼0.0238.92 ▲2.6435.19 ▼0.10
Add New Post /wp-admin/post-new.php1,546 ▲2423.48 ▲0.42670.55 ▼12.3557.19 ▼6.54
Media Library /wp-admin/upload.php1,401 ▲224.13 ▼0.0594.95 ▼8.0041.40 ▼4.37

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: dailydate, autodater, time, date, date on post...

autodater/autodater.php 85% from 13 tests

The principal PHP file in "AutoDater" v. 2.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected267 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP412039250
CSS10017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin