90% what-is-today

Code Review | What is today?

WordPress plugin What is today? scored90%from 54 tests.

About plugin

  • Plugin page: what-is-today
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.6-4.6.6
  • WordPress version: 6.3.1
  • First release: Jun 5, 2017
  • Latest release: Jun 5, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: aqourstokyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼10.27ms] Passed 4 tests

Server-side resources used by What is today?
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.80 ▼7.29
Dashboard /wp-admin3.41 ▲0.1149.84 ▼7.32
Posts /wp-admin/edit.php3.46 ▲0.1149.86 ▲0.31
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.85 ▼20.88
Media Library /wp-admin/upload.php3.34 ▲0.1136.06 ▼5.60

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for What is today?
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.071.81 ▼0.1645.70 ▲0.20
Dashboard /wp-admin2,195 ▲185.52 ▼0.0582.39 ▼13.1538.91 ▼2.83
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0337.27 ▲1.2636.13 ▼2.52
Add New Post /wp-admin/post-new.php1,526 ▼222.98 ▼0.03635.96 ▼48.4549.81 ▼3.65
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.08104.32 ▼14.7746.66 ▼5.61

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

what-is-today/what-is-today.php Passed 13 tests

Analyzing the main PHP file in "What is today?" version 1.0.0
33 characters long description:
今日は何の日?ふっふー

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin787 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1621787

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin