10% wp-responsive-holiday-events-calendar

Code Review | WP Responsive Holiday/Events Calendar

WordPress plugin WP Responsive Holiday/Events Calendar scored10%from 54 tests.

About plugin

  • Plugin page: wp-responsive-hol...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Feb 21, 2020
  • Number of updates: 11
  • Update frequency: every 86.8 days
  • Top authors: vsourz1td (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,757 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-responsive-holiday-events-calendar/wp-responsive-holiday-events-calendar.php+1233
    Methods with the same name as their class will not be constructors in a future version of PHP; whec_array_sorter has a deprecated constructor

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.47ms] Passed 4 tests

A check of server-side resources used by WP Responsive Holiday/Events Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.05 ▲4.38
Dashboard /wp-admin3.32 ▼0.0352.49 ▼17.43
Posts /wp-admin/edit.php3.37 ▲0.0149.88 ▼1.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.72 ▼15.55
Media Library /wp-admin/upload.php3.24 ▲0.0138.72 ▲4.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_whec_holiday
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WP Responsive Holiday/Events Calendar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6613.63 ▼0.931.79 ▼0.3143.60 ▲3.31
Dashboard /wp-admin2,233 ▲305.88 ▼0.03113.24 ▼14.3143.14 ▼14.06
Posts /wp-admin/edit.php2,109 ▲91.99 ▲0.0335.05 ▼4.2535.16 ▲0.10
Add New Post /wp-admin/post-new.php1,536 ▲1017.68 ▲0.14629.77 ▼1.6056.53 ▼2.51
Media Library /wp-admin/upload.php1,412 ▲184.30 ▲0.0596.57 ▼5.0943.08 ▲0.00

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_whec_holiday
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-responsive-holiday-events-calendar/wp-responsive-holiday-events-calendar.php Passed 13 tests

The entry point to "WP Responsive Holiday/Events Calendar" version 1.1.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Beautiful way to show your upcoming Holidays and Events in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,763 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS776921,832
PHP21631391,452
JavaScript53281801,373
PO File14949106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity19.00
▷ Minimum class complexity12.00
▷ Maximum class complexity26.00
Average method complexity6.14
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/drop-down-arrow.png0.59KB0.32KB▼ 46.96%
assets/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%