84% autodate

Code Review | Autodate

WordPress plugin Autodate scored84%from 54 tests.

About plugin

  • Plugin page: autodate
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Jun 26, 2021
  • Latest release: Aug 23, 2022
  • Number of updates: 10
  • Update frequency: every 42.4 days
  • Top authors: sergei0sahapov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.72ms] Passed 4 tests

This is a short check of server-side resources used by Autodate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.64 ▼5.13
Dashboard /wp-admin3.40 ▲0.1047.41 ▲0.61
Posts /wp-admin/edit.php3.45 ▲0.1050.00 ▼0.09
Add New Post /wp-admin/post-new.php6.00 ▲0.1283.47 ▼12.42
Media Library /wp-admin/upload.php3.32 ▲0.1034.98 ▼1.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_autodate_data
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Autodate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.17 ▼1.211.71 ▼0.1138.47 ▼7.48
Dashboard /wp-admin2,224 ▲335.88 ▲0.99109.21 ▼1.4337.30 ▼11.27
Posts /wp-admin/edit.php2,107 ▲182.18 ▲0.1240.72 ▲0.0736.42 ▲0.62
Add New Post /wp-admin/post-new.php1,529 ▲1017.92 ▼5.40659.80 ▼11.0651.83 ▲3.20
Media Library /wp-admin/upload.php1,403 ▲124.21 ▼0.0395.75 ▼2.3544.43 ▲0.65

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/autodate/autodate.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in autodate/assets to your readme.txt
Please take inspiration from this readme.txt

autodate/autodate.php Passed 13 tests

The main PHP file in "Autodate" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
This plugin allows you to add dates to your site that will update automatically according to the interval you specify

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin724 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35912411
PO File15051179
JavaScript1210134

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity6.70
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants342.86%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin