57% vip-events

Code Review | VIP Events

WordPress plugin VIP Events scored57%from 54 tests.

About plugin

  • Plugin page: vip-events
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: May 27, 2016
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: vipulrocked (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /523 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.82MB] [CPU: ▼30.50ms] Passed 4 tests

Analyzing server-side resources used by VIP Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.44 ▲0.79
Dashboard /wp-admin3.13 ▼0.1824.80 ▼22.58
Posts /wp-admin/edit.php3.13 ▼0.2323.78 ▼23.03
Add New Post /wp-admin/post-new.php3.13 ▼2.7623.14 ▼67.76
Media Library /wp-admin/upload.php3.13 ▼0.1023.37 ▼8.63
Event Categories /wp-admin/edit-tags.php?taxonomy=events_category&post_type=alw-events3.1323.15
All Events /wp-admin/edit.php?post_type=alw-events3.1325.09
Add New Event /wp-admin/post-new.php?post_type=alw-events3.1324.55

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for VIP Events
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7713.15 ▼1.384.91 ▲3.3742.65 ▲3.13
Dashboard /wp-admin2,244 ▲665.71 ▼0.0188.80 ▼12.1443.85 ▲1.02
Posts /wp-admin/edit.php2,146 ▲462.20 ▲0.2634.69 ▼3.4532.70 ▼1.79
Add New Post /wp-admin/post-new.php1,565 ▲2823.30 ▲5.33636.74 ▼17.5153.74 ▼22.01
Media Library /wp-admin/upload.php1,446 ▲464.30 ▲0.0794.71 ▼18.6744.62 ▼1.52
Event Categories /wp-admin/edit-tags.php?taxonomy=events_category&post_type=alw-events1,3232.2729.4930.99
All Events /wp-admin/edit.php?post_type=alw-events1,1102.1330.9728.70
Add New Event /wp-admin/post-new.php?post_type=alw-events2,3907.83165.8171.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Alweventsadmin' does not have a method 'admin_init_hooks'
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=alw-events
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Alweventsadmin' does not have a method 'admin_init_hooks'
    • > GET request to /wp-admin/post-new.php?post_type=alw-events
    • > Notice in wp-content/plugins/vip-events/class.front.alw_events.php+293
    Undefined index: custom_meta_box_nonce
    • > GET request to /wp-admin/post-new.php?post_type=alw-events
    • > Warning in wp-content/plugins/vip-events/class.front.alw_events.php+132
    Invalid argument supplied for foreach()

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vip-events/vip-events.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vip-events/class.front.alw_events.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vip-events/class.admin.alw_events.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vip-events/single-alw-events.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=alw-events
    • > Network (severe)
    wp-content/plugins/vip-events/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: event using custom post type, events, vip events, simple events

vip-events/vip-events.php 92% from 13 tests

Analyzing the main PHP file in "VIP Events" version 1.0.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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 plugin1,996 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS71251171,148
PHP59765617
JavaScript7750231

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.00
▷ Minimum class complexity2.00
▷ Maximum class complexity48.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png0.27KB0.29KB0.00%
images/prev.png1.33KB1.59KB0.00%
images/next.png1.32KB1.58KB0.00%