84% taugun

Code Review | Taugun Events Calendar

WordPress plugin Taugun Events Calendar scored84%from 54 tests.

About plugin

  • Plugin page: taugun
  • Plugin version: 1.6
  • PHP compatiblity: 5.6.25+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2019
  • Latest release: Aug 14, 2019
  • Number of updates: 11
  • Update frequency: every 5.5 days
  • Top authors: fpin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.94ms] Passed 4 tests

This is a short check of server-side resources used by Taugun Events Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2143.22 ▲3.24
Dashboard /wp-admin3.55 ▲0.2549.69 ▼10.88
Posts /wp-admin/edit.php3.60 ▲0.2458.61 ▲9.61
Add New Post /wp-admin/post-new.php6.25 ▲0.3689.04 ▼17.87
Media Library /wp-admin/upload.php3.49 ▲0.2640.86 ▲5.74
Categories /wp-admin/edit-tags.php?taxonomy=esf_events_cat&post_type=esf-events3.5441.26
Add Event /wp-admin/post-new.php?post_type=esf-events3.8958.84
Events /wp-admin/edit.php?post_type=esf-events3.5945.72
Tags /wp-admin/edit-tags.php?taxonomy=esf_events_tag&post_type=esf-events3.5440.93
Organizers /wp-admin/edit.php?post_type=esf-events&page=organizers3.6143.88
Settings /wp-admin/edit.php?post_type=esf-events&page=settings3.6344.25
Locations /wp-admin/edit.php?post_type=esf-events&page=locations3.6143.76

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
esf_free_version
widget_theysaidso_widget
esf_account_management_events_page_id
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Taugun Events Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19213.88 ▼0.418.91 ▲7.1873.00 ▲29.59
Dashboard /wp-admin2,229 ▲525.56 ▼0.0284.23 ▼20.1875.43 ▲32.70
Posts /wp-admin/edit.php2,146 ▲431.99 ▲0.0039.05 ▲2.9537.14 ▲0.84
Add New Post /wp-admin/post-new.php1,564 ▲3623.49 ▲0.20711.72 ▲5.1264.41 ▲6.17
Media Library /wp-admin/upload.php1,443 ▲434.20 ▼0.0398.34 ▼13.0873.29 ▲24.82
Categories /wp-admin/edit-tags.php?taxonomy=esf_events_cat&post_type=esf-events1,5313.7361.8882.06
Add Event /wp-admin/post-new.php?post_type=esf-events5,3077.93217.3884.12
Events /wp-admin/edit.php?post_type=esf-events1,3583.4968.5774.57
Tags /wp-admin/edit-tags.php?taxonomy=esf_events_tag&post_type=esf-events1,5033.6856.1578.67
Organizers /wp-admin/edit.php?post_type=esf-events&page=organizers1,1643.5842.6460.88
Settings /wp-admin/edit.php?post_type=esf-events&page=settings2,1503.6042.8084.56
Locations /wp-admin/edit.php?post_type=esf-events&page=locations1,1643.6042.7460.39

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-comments
    • esf_account_management_events_page_id
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • esf_free_version

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=esf-events
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp events, events, wordpress events, events calendar, wordpress events calendar

taugun/esf.php 92% from 13 tests

The primary PHP file in "Taugun Events Calendar" version 1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("taugun.php" instead of "esf.php")

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
Everything looks great! No dangerous files found in this plugin21,630 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82,5167169,853
PHP431,5571,6165,650
CSS9159823,456
SVG1002,671

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.75
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes13.85%
Methods304
▷ Static methods10634.87%
▷ Public methods26486.84%
▷ Protected methods134.28%
▷ Private methods278.88%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/single-event-placeholder.png3.81KB1.98KB▼ 47.94%
assets/images/location-placeholder.png2.42KB1.28KB▼ 47.08%
assets/images/flintop.png2.53KB1.83KB▼ 27.98%
assets/images/organizer-placeholder.png2.70KB2.00KB▼ 26.09%
assets/images/dash-icon.png0.80KB0.79KB▼ 1.46%