84% change-date-language-english-speakers

Code Review | Change Date Language (English speakers)

WordPress plugin Change Date Language (English speakers) scored84%from 54 tests.

About plugin

  • Plugin page: change-date-langu...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Oct 11, 2013
  • Latest release: Dec 14, 2013
  • Number of updates: 6
  • Update frequency: every 10.8 days
  • Top authors: FoN22 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.17ms] Passed 4 tests

An overview of server-side resources used by Change Date Language (English speakers)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.68 ▲0.47
Dashboard /wp-admin3.34 ▼0.0052.35 ▼15.70
Posts /wp-admin/edit.php3.39 ▲0.0461.19 ▲5.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0499.30 ▼6.55
Media Library /wp-admin/upload.php3.26 ▲0.0438.08 ▲1.12
CDL (EN) /wp-admin/options-general.php?page=change-date-language-en3.2333.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
mesi_int
giorni_slug
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
giorni_int
mesi_slug

Browser metrics Passed 4 tests

Checking browser requirements for Change Date Language (English speakers)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.30 ▼0.121.66 ▼0.2642.54 ▼3.22
Dashboard /wp-admin2,199 ▲195.65 ▼0.0391.53 ▲0.8740.07 ▼1.93
Posts /wp-admin/edit.php2,101 ▼21.98 ▼0.0539.39 ▼1.2035.03 ▼2.50
Add New Post /wp-admin/post-new.php1,548 ▲2223.18 ▲5.54670.82 ▼15.1348.80 ▼3.28
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.0397.51 ▼9.4042.18 ▼3.28
CDL (EN) /wp-admin/options-general.php?page=change-date-language-en8812.1423.5226.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 10 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • mesi_int
    • can_compress_scripts
    • widget_theysaidso_widget
    • giorni_slug
    • mesi_slug
    • giorni_int

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/change-date-language-english-speakers/change-date-language-en.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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: date translation, local language, dates, time and date, translation...

change-date-language-english-speakers/change-date-language-en.php 85% from 13 tests

The principal PHP file in "Change Date Language (English speakers)" v. 0.1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("change-date-language-english-speakers.php" instead of "change-date-language-en.php")
  • Description: The description should be shorter than 140 characters (currently 494 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181275
CSS1208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin