83% hackathon

Code Review | Hackathon Management System

WordPress plugin Hackathon Management System scored83%from 54 tests.

About plugin

  • Plugin page: hackathon
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2022
  • Latest release: Sep 8, 2023
  • Number of updates: 16
  • Update frequency: every 28.9 days
  • Top authors: burdianov (81.25%)teplosup (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,743 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.84ms] Passed 4 tests

Analyzing server-side resources used by Hackathon Management System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2151.64 ▲15.47
Dashboard /wp-admin3.45 ▲0.1546.87 ▼6.03
Posts /wp-admin/edit.php3.50 ▲0.1444.78 ▼2.31
Add New Post /wp-admin/post-new.php6.45 ▲0.5687.26 ▼9.37
Media Library /wp-admin/upload.php3.37 ▲0.1437.38 ▲6.34
HMS /wp-admin/options-general.php?page=hms3.3433.05

Server storage [IO: ▲1.08MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Hackathon Management System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,273 ▲53815.10 ▲0.7231.45 ▲29.6040.47 ▼4.81
Dashboard /wp-admin2,287 ▲995.86 ▲0.96100.59 ▼12.8638.12 ▼7.30
Posts /wp-admin/edit.php2,166 ▲742.17 ▲0.1837.99 ▼4.1532.87 ▼4.03
Add New Post /wp-admin/post-new.php1,578 ▲6423.55 ▲6.04664.92 ▼2.7753.41 ▲2.80
Media Library /wp-admin/upload.php1,466 ▲754.19 ▲0.0192.79 ▼5.5941.18 ▼1.01
HMS /wp-admin/options-general.php?page=hms8622.0425.1125.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 88× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hackathon/inc/ajax/delete-team.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hms_page_title() in wp-content/plugins/hackathon/templates/content/content-projects.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hms_icon() in wp-content/plugins/hackathon/templates/navbar.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hackathon/inc/teams.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hackathon/inc/link-template.php:257
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hackathon/inc/ajax/login-user.php:36
    • > PHP Warning
      require_once(HMS_PATHinc/functions.php): failed to open stream: No such file or directory in wp-content/plugins/hackathon/inc/init.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_timezone_string() in wp-content/plugins/hackathon/templates/widgets/widget-date.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hms_icon() in wp-content/plugins/hackathon/templates/widgets/widget-messages.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hackathon/inc/ajax/insert-message.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: No valid plugin tags found
You can look at the official readme.txt

hackathon/hackathon.php 85% from 13 tests

The principal PHP file in "Hackathon Management System" v. 1.2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin23,162 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
CSS101,76938610,046
PHP882,1331,0189,711
JavaScript56205543,252
SVG400153

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions237
▷ Named functions23398.31%
▷ Anonymous functions41.69%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected