84% xllentech-english-islamic-calendar

Code Review | Xllentech English Islamic Calendar

WordPress plugin Xllentech English Islamic Calendar scored84%from 54 tests.

About plugin

  • Plugin page: xllentech-english...
  • Plugin version: 2.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Nov 18, 2022
  • Number of updates: 163
  • Update frequency: every 15.1 days
  • Top authors: xllentech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,216 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.44ms] Passed 4 tests

Server-side resources used by Xllentech English Islamic Calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.52 ▼2.00
Dashboard /wp-admin3.36 ▲0.0646.87 ▼4.24
Posts /wp-admin/edit.php3.48 ▲0.1250.85 ▲0.73
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.88 ▼0.24
Media Library /wp-admin/upload.php3.29 ▲0.0639.08 ▲2.36
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options_tab23.3031.77
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options3.2632.33
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options_tab43.2631.12
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options_tab33.2628.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: 2 new tables, 9 new options
New tables
wp_month_firstdate
wp_month_days
New WordPress options
can_compress_scripts
widget_xllentech_islamic_today_plugin
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
widget_xllentech_calendar
theysaidso_admin_options
db_upgraded
xc_options

Browser metrics Passed 4 tests

Xllentech English Islamic Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.22 ▼1.161.73 ▲0.1242.99 ▼1.31
Dashboard /wp-admin2,211 ▲235.80 ▼0.07101.49 ▼1.8738.33 ▼7.34
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0339.30 ▼2.0735.26 ▼0.34
Add New Post /wp-admin/post-new.php1,521 ▼1223.36 ▲0.28646.06 ▼81.4149.50 ▼9.31
Media Library /wp-admin/upload.php1,396 ▲84.22 ▼0.03110.38 ▼2.0748.44 ▲2.03
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options_tab21,0942.0623.0234.04
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options3,2492.0827.2238.61
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options_tab41,0982.0522.7236.39
Xllentech Calendar /wp-admin/options-general.php?page=xllentech_options_tab31,2192.1824.5330.41

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_xllentech_islamic_today_plugin
    • widget_xllentech_calendar
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/xllentech-english-islamic-calendar/includes/class-xllentech-english-islamic-calendar-activator.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/includes/class-xllentech-english-islamic-calendar-i18n.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/includes/class-xllentech-english-islamic-calendar.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/admin/partials/class-xllentech-english-islamic-calendar-options.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/includes/class-xllentech-islamic-today.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/admin/partials/class-xllentech-english-islamic-calendar-monthnames.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/includes/class-xllentech-english-islamic-calendar-deactivator.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/admin/class-xllentech-english-islamic-calendar-admin.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/admin/partials/xllentech-english-islamic-calendar-admin-sidebar.php
    • > /wp-content/plugins/xllentech-english-islamic-calendar/public/partials/shortcode-islamic-month-days.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: islamic calendar, calendar, php, hijri calendar, xllentech calendar...

xllentech-english-islamic-calendar/xllentech-english-islamic-calendar.php 92% from 13 tests

The entry point to "Xllentech English Islamic Calendar" version 2.7.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,031 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP186158122,022
JavaScript24567
CSS2042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.25
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods56
▷ Static methods23.57%
▷ Public methods4987.50%
▷ Protected methods00.00%
▷ Private methods712.50%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
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
admin/css/rate.png2.19KB1.74KB▼ 20.49%