68% fuzzy-date-and-time-in-french

Code Review | Fuzzy DateTime in french

WordPress plugin Fuzzy DateTime in french scored68%from 54 tests.

About plugin

  • Plugin page: fuzzy-date-and-ti...
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.4
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Oct 23, 2012
  • Number of updates: 15
  • Update frequency: N/A
  • Top authors: mll (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.90ms] Passed 4 tests

A check of server-side resources used by Fuzzy DateTime in french
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.83 ▼0.39
Dashboard /wp-admin3.00 ▼0.3123.43 ▼29.78
Posts /wp-admin/edit.php3.00 ▼0.3624.89 ▼26.79
Add New Post /wp-admin/post-new.php3.00 ▼2.8924.57 ▼77.47
Media Library /wp-admin/upload.php3.00 ▼0.2327.07 ▼5.57

Server storage [IO: ▲0.02MB] [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-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Fuzzy DateTime in french
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.12 ▼0.251.72 ▼0.2244.37 ▼1.45
Dashboard /wp-admin2,190 ▲225.65 ▲0.0691.36 ▲4.5938.44 ▼3.08
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0740.03 ▼1.5036.49 ▼2.14
Add New Post /wp-admin/post-new.php1,529 ▲321.53 ▼1.29670.81 ▲36.5953.31 ▼4.83
Media Library /wp-admin/upload.php1,404 ▲74.11 ▼0.05105.43 ▼1.7248.52 ▲1.95
Fuzzy DateTime /wp-admin/fuzzy-datetime-fr.php260.420.0616.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fuzzy-date-and-time-in-french/fuzzy-datetime-fr.php:49

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/fuzzy-datetime-fr.php
    • > Network (severe)
    wp-admin/fuzzy-datetime-fr.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === fuzzy-date-and-time-in-french === )
You can take inspiration from this readme.txt

fuzzy-date-and-time-in-french/fuzzy-datetime-fr.php 92% from 13 tests

The main PHP file in "Fuzzy DateTime in french" ver. 0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fuzzy-date-and-time-in-french.php" instead of "fuzzy-datetime-fr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected386 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP144116386

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin