93% pp-auto-thai-date

Code Review | PP Auto Thai Date

WordPress plugin PP Auto Thai Date scored 93% from 54 tests.

About plugin

  • Plugin page: pp-auto-thai-date
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 5.8.1
  • First release: Dec 26, 2011
  • Latest release: Dec 26, 2011
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: preukson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,285 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼146.41ms] Passed 4 tests

This is a short check of server-side resources used by PP Auto Thai Date
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0240.61 ▲1.86
Dashboard /wp-admin3.08 ▲0.0258.62 ▲10.12
Posts /wp-admin/edit.php3.13 ▲0.0244.54 ▼1.88
Add New Post /wp-admin/post-new.php5.44 ▼0.0087.41 ▼586.22
Media Library /wp-admin/upload.php3.02 ▲0.0234.29 ▲0.60

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for PP Auto Thai Date
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.78 ▲0.545.60 ▼2.3549.50 ▼1.54
Dashboard /wp-admin2,962 ▲315.91 ▼0.23157.96 ▲7.08119.30 ▼2.73
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0165.16 ▼7.3797.72 ▼9.27
Add New Post /wp-admin/post-new.php1,500 ▼18318.64 ▲0.07390.61 ▲5.03117.31 ▼1.07
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.02151.45 ▼2.27133.00 ▲4.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pp-auto-thai-date/thai_date.php:33

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === pp-auto-thai-date === )
You can take inspiration from this readme.txt

pp-auto-thai-date/thai_date.php 85% from 13 tests

The main file in "PP Auto Thai Date" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pp-auto-thai-date.php" instead of "thai_date.php")

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 plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17823

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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