84% fyvent

Code Review | Fyvent

WordPress plugin Fyvent scored 84% from 54 tests.

About plugin

  • Plugin page: fyvent
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 22, 2022
  • Latest release: Apr 22, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bprieto65 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 199 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.27MB] [CPU: ▲0.70ms] Passed 4 tests

Server-side resources used by Fyvent
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.39 ▲0.9341.37 ▲0.69
Dashboard /wp-admin4.81 ▲1.5052.21 ▲2.79
Posts /wp-admin/edit.php4.82 ▲1.4750.37 ▲0.13
Add New Post /wp-admin/post-new.php7.23 ▲1.3491.00 ▼0.79
Media Library /wp-admin/upload.php4.58 ▲1.3548.49 ▲16.78
Add New /wp-admin/post-new.php?post_type=session5.1259.05
Options /wp-admin/admin.php?page=fyvent_options4.5538.95
Add New /wp-admin/post-new.php?post_type=room5.1159.99
All rooms /wp-admin/edit.php?post_type=room4.6444.99
All Venues /wp-admin/edit.php?post_type=venue4.6440.78
Add New /wp-admin/post-new.php?post_type=venue5.0960.65
All sessions /wp-admin/edit.php?post_type=session4.6444.64

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 513 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Fyvent
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲25513.32 ▼1.061.71 ▲0.0641.52 ▼6.91
Dashboard /wp-admin2,390 ▲2024.97 ▲0.08108.77 ▼7.2638.09 ▼5.33
Posts /wp-admin/edit.php2,270 ▲1812.11 ▲0.0739.32 ▲0.2033.02 ▼3.63
Add New Post /wp-admin/post-new.php1,619 ▲8623.36 ▲0.02673.75 ▲38.1157.67 ▼2.48
Media Library /wp-admin/upload.php1,572 ▲1844.31 ▲0.11101.89 ▼2.0744.05 ▼1.41
Add New /wp-admin/post-new.php?post_type=session2,5178.31200.3169.78
Options /wp-admin/admin.php?page=fyvent_options1,1052.3026.2027.00
Add New /wp-admin/post-new.php?post_type=room2,5437.95168.3157.71
All rooms /wp-admin/edit.php?post_type=room1,2622.0637.3629.47
All Venues /wp-admin/edit.php?post_type=venue1,2372.0836.2129.47
Add New /wp-admin/post-new.php?post_type=venue2,4837.85169.6857.71
All sessions /wp-admin/edit.php?post_type=session1,3262.0737.7832.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 143× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fyvent/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fyvent/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fyvent/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/fyvent/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fyvent/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/fyvent/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fyvent/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/fyvent/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fyvent/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/fyvent/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #6 (Attendant registration form) image missing
You can look at the official readme.txt

fyvent/fyvent.php Passed 13 tests

The primary PHP file in "Fyvent" version 1.0.0 is used by WordPress to initiate all plugin functionality
29 characters long description:
Events organization solution.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected58,809 lines of code in 355 files:
LanguageFilesBlank linesComment linesLines of code
PO File12114,49318,70532,759
PHP1743,2268,28212,417
CSS183121,2644,816
JSON6004,636
JavaScript114726811,859
Sass17306291,411
Markdown52670800
YAML3300111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.96
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes169
▷ Abstract classes105.92%
▷ Concrete classes15994.08%
▷ Final classes00.00%
Methods694
▷ Static methods10915.71%
▷ Public methods55579.97%
▷ Protected methods12818.44%
▷ Private methods111.59%
Functions132
▷ Named functions12493.94%
▷ Anonymous functions86.06%
Constants18
▷ Global constants738.89%
▷ Class constants1161.11%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
vendor/cmb2/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%