84% month-name-translation-benaceur

Code Review | month name translation benaceur

WordPress plugin month name translation benaceur scored84%from 54 tests.

About plugin

  • Plugin page: month-name-transl...
  • Plugin version: 2.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 12, 2023
  • Number of updates: 39
  • Update frequency: every 75.2 days
  • Top authors: Benaceur (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲2.89ms] Passed 4 tests

A check of server-side resources used by month name translation benaceur
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.82 ▼1.19
Dashboard /wp-admin3.44 ▲0.1459.67 ▲12.27
Posts /wp-admin/edit.php3.56 ▲0.2055.85 ▲3.62
Add New Post /wp-admin/post-new.php6.02 ▲0.13102.85 ▲3.46
Media Library /wp-admin/upload.php3.36 ▲0.1342.74 ▲5.67
Month-Translation-Benaceur /wp-admin/options-general.php?page=month-name-translation-benaceur3.4950.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 33 new options
New WordPress options
can_compress_scripts
monthnametranslationbenaceurtjuil
month_name_translation_benaceur_Sep
month_name_translation_benaceur_t_Mar
month_name_translation_benaceur_Fev
monthnametranslationbenaceurjuin
month_name_translation_benaceur_t_Dec
widget_theysaidso_widget
month_name_translation_benaceur_Avr
month_name_translation_benaceur_Oct
...

Browser metrics Passed 4 tests

A check of browser resources used by month name translation benaceur
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.43 ▲0.071.85 ▲0.2938.20 ▼5.61
Dashboard /wp-admin2,225 ▲194.87 ▼0.04107.12 ▲0.7642.47 ▲1.36
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0240.36 ▼3.3836.37 ▼1.97
Add New Post /wp-admin/post-new.php1,550 ▲2423.48 ▲5.94634.07 ▼50.3747.16 ▼6.11
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.00101.69 ▲0.0743.85 ▼3.02
Month-Translation-Benaceur /wp-admin/options-general.php?page=month-name-translation-benaceur2,0781.7325.5975.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 33 options in the database
    • month_name_translation_benaceur_Nov
    • monthnametranslationbenaceurtjuil
    • monthnametranslationbenaceurjuil
    • month_name_translation_benaceur_t_Mai
    • theysaidso_admin_options
    • month_name_translation_benaceur_t_jan
    • month_name_translation_benaceur_t_Nov
    • db_upgraded
    • month_name_translation_benaceur_abbrev_month
    • month_name_translation_benaceur_t_Aou
    • ...

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)
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/month-name-translation-benaceur/month-name-translation-benaceur.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: change name month, change name of month, months names, name month, translation name of the month...

month-name-translation-benaceur/month-name-translation-benaceur.php Passed 13 tests

The primary PHP file in "month name translation benaceur" version 2.3.7 is used by WordPress to initiate all plugin functionality
72 characters long description:
This plugin allows you to edit and translate the names of the months ...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,427 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5148181,083
CSS1231254
PO File1252687
JavaScript1023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity35.00
▷ Minimum class complexity34.00
▷ Maximum class complexity36.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/benaceur.png3.63KB2.53KB▼ 30.11%