10% event-n-task

Code Review | Event-N-Task

WordPress plugin Event-N-Task scored 10% from 54 tests.

About plugin

  • Plugin page: event-n-task
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2013
  • Latest release: Apr 14, 2014
  • Number of updates: 4
  • Update frequency: every 104.0 days
  • Top authors: mjgarvi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 831 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/event-n-task/widget.php+119
    Function create_function() is deprecated

Server metrics [RAM: ▼1.55MB] [CPU: ▼55.87ms] Passed 4 tests

An overview of server-side resources used by Event-N-Task
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.44 ▼1.026.15 ▼38.71
Dashboard /wp-admin2.46 ▼0.848.85 ▼38.65
Posts /wp-admin/edit.php2.46 ▼0.906.60 ▼44.47
Add New Post /wp-admin/post-new.php2.46 ▼3.438.23 ▼101.65
Media Library /wp-admin/upload.php2.46 ▼0.7710.03 ▼24.28
Add New /wp-admin/post-new.php?post_type=ent-event2.467.40
Event-N-Task /wp-admin/options-general.php?page=ent-settings2.468.15
All Events /wp-admin/edit.php?post_type=ent-event2.467.96
Add New /wp-admin/post-new.php?post_type=ent-place2.466.73
All Places /wp-admin/edit.php?post_type=ent-place2.469.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_ent-widget-event
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Event-N-Task
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.40 ▼1.181.75 ▼0.1844.87 ▲0.42
Dashboard /wp-admin2,284 ▲964.96 ▲0.06102.15 ▼0.4538.35 ▼4.25
Posts /wp-admin/edit.php2,164 ▲752.09 ▲0.0438.90 ▼3.0932.70 ▼3.20
Add New Post /wp-admin/post-new.php1,577 ▲3523.38 ▲5.21649.24 ▲42.0951.94 ▼0.27
Media Library /wp-admin/upload.php1,460 ▲784.41 ▲0.21105.64 ▲6.9945.39 ▲0.86
Add New /wp-admin/post-new.php?post_type=ent-event2,7847.91170.5763.19
Event-N-Task /wp-admin/options-general.php?page=ent-settings8781.9426.5824.56
All Events /wp-admin/edit.php?post_type=ent-event1,1752.0536.2528.13
Add New /wp-admin/post-new.php?post_type=ent-place2,2767.75170.9754.95
All Places /wp-admin/edit.php?post_type=ent-place1,1812.0335.0230.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/event-n-task/widget.php+119
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_ent-widget-event
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ent-place
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/event-n-task/widget.php+119
    Function create_function() is deprecated
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ent-place
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/event-n-task/archive-ent-event.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/event-n-task/widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/event-n-task/widget.php:11

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: tasks, event

event-n-task/event-n-task.php Passed 13 tests

Analyzing the main PHP file in "Event-N-Task" version 1.0
136 characters long description:
The delicious event and task management plugin. We've also stuffed in some user registration for events, so this bad boy has everything.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,105 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32593941,016
CSS2204289

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/map-pin.png1.87KB1.29KB▼ 30.79%
img/calendar-blue.png1.88KB1.05KB▼ 44.35%