Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.58MB] [CPU: ▲9.87ms] Passed 4 tests
An overview of server-side resources used by Horoscope And Tarot
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.49 ▲2.03 | 50.97 ▲11.51 |
Dashboard /wp-admin | 6.06 ▲2.76 | 64.40 ▲12.39 |
Posts /wp-admin/edit.php | 6.18 ▲2.82 | 60.49 ▲11.82 |
Add New Post /wp-admin/post-new.php | 8.66 ▲2.78 | 103.13 ▲3.74 |
Media Library /wp-admin/upload.php | 5.99 ▲2.76 | 49.79 ▲16.68 |
Server storage [IO: ▲27.34MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Try to limit filesystem usage to 25MB (currently using 27.34MB)
Filesystem: 663 new files
Database: no new tables, 66 new options
New WordPress options |
---|
daily_panchang_settings_auspi_timings_btn_color_field |
daily_panchang_settings_nivas_and_shool_btn_color_field |
daily_panchang_settings_in_auspi_timings_btn_color_field |
daily_panchang_settings_panchak_and_udaya_show_hide_field |
daily_panchang_settings_panchak_and_udaya_btn_color_field |
daily_panchang_settings_other_calendar_and_epoch_show_hide_field |
daily_panchang_settings_chandra_and_tara_show_hide_field |
horoscope_settings_font_size_field |
choghadiya_settings_night_choghadiya_text_color_field |
kundali_settings_theme_color_field |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Horoscope And Tarot
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲251 | 14.09 ▼0.13 | 8.59 ▲6.83 | 49.39 ▲3.32 |
Dashboard /wp-admin | 2,274 ▲95 | 5.14 ▼0.72 | 102.72 ▼15.40 | 78.38 ▲32.85 |
Posts /wp-admin/edit.php | 2,160 ▲71 | 2.47 ▲0.48 | 42.78 ▲5.17 | 35.92 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,733 ▲200 | 22.46 ▼0.61 | 675.95 ▲11.52 | 31.45 ▼21.55 |
Media Library /wp-admin/upload.php | 1,456 ▲68 | 4.44 ▲0.14 | 116.74 ▲18.99 | 42.29 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 66 options
- daily_panchang_settings_lunar_month_and_samvat_show_hide_field
- daily_panchang_settings_nivas_and_shool_label_color_field
- horoscope_buttons_position_field
- can_compress_scripts
- daily_panchang_settings_auspi_timings_btn_color_field
- horoscope_settings_sign_field
- daily_panchang_settings_lunar_month_and_samvat_btn_color_field
- daily_panchang_settings_chandra_and_tara_show_hide_field
- daily_panchang_settings_in_auspi_timings_label_color_field
- choghadiya_settings_button_text_color_field
- ...
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 0% 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
Please fix the following items
- 36× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-horoscope-chart-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-nav-pancham-yoga-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-yogini-dasha-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-manglik-analysis-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-horoscope-chart-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-vimshottari-dasha-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-match-making-report-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-ascendant-report-details.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-first-page.php
- > /wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-first-page.php
- 1128× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-kp-house-cusps-and-chart-details.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-composite-friendship-details.php on line 92
- > PHP Notice
Undefined variable: month in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-first-page.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-basic-details.php on line 160
- > PHP Notice
Undefined variable: lang_type in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-manglik-analysis-details.php on line 16
- > PHP Notice
Undefined variable: pt_basic_astro in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-matching-basic-details.php on line 19
- > PHP Notice
Undefined variable: messages in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-kp-house-cusps-and-chart-details.php on line 18
- > PHP Notice
Undefined variable: ascendant in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-basic-details.php on line 197
- > PHP Notice
Undefined variable: bhava_12 in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-bhava-charts-details.php on line 113
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/horoscope-and-tarot/inc/parts/kundali-composite-friendship-details.php on line 54
- > PHP Notice
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 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please specify the plugin name on the first line (
=== horoscope-and-tarot ===
)
horoscope-and-tarot/horoscope-and-tarot.php Passed 13 tests
The primary PHP file in "Horoscope And Tarot" version 1.1.9 is used by WordPress to initiate all plugin functionality
36 characters long description:
Divine API Horoscope & Tarot Plugin.
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 plugin88,620 lines of code in 430 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 55 | 6,710 | 2,775 | 31,466 |
CSS | 48 | 5,013 | 2,835 | 26,446 |
PHP | 192 | 4,396 | 5,974 | 25,352 |
Markdown | 17 | 1,467 | 0 | 3,971 |
JSON | 10 | 0 | 0 | 1,034 |
SVG | 108 | 0 | 1 | 351 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 79 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 79 | 100.00% |
▷ Final classes | 35 | 44.30% |
Methods | 792 | |
▷ Static methods | 148 | 18.69% |
▷ Public methods | 674 | 85.10% |
▷ Protected methods | 4 | 0.51% |
▷ Private methods | 114 | 14.39% |
Functions | 368 | |
▷ Named functions | 278 | 75.54% |
▷ Anonymous functions | 90 | 24.46% |
Constants | 67 | |
▷ Global constants | 3 | 4.48% |
▷ Class constants | 64 | 95.52% |
▷ Public constants | 53 | 82.81% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
132 PNG files occupy 4.33MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/zodiac/Libra.png | 18.45KB | 18.44KB | 0.05% |
public/images/zodiac/Pisces-1.png | 10.10KB | 10.10KB | 0.00% |
admin/colorpicker/images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
public/images/kundali/sadhesati.png | 130.56KB | 36.90KB | ▼ 71.74% |
public/images/kundali/header_title.png | 2.20KB | 0.59KB | ▼ 73.14% |