84% evento

Code Review | Evento

WordPress plugin Evento scored84%from 54 tests.

About plugin

  • Plugin page: evento
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 30
  • Update frequency: every 48.7 days
  • Top authors: nayrathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /25,238 total downloads

Benchmarks

Plugin footprint 83% 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.28MB] [CPU: ▼4.49ms] Passed 4 tests

Analyzing server-side resources used by Evento
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2742.56 ▼0.27
Dashboard /wp-admin3.58 ▲0.2847.92 ▼3.38
Posts /wp-admin/edit.php3.69 ▲0.3350.71 ▼2.13
Add New Post /wp-admin/post-new.php6.18 ▲0.2986.46 ▼11.90
Media Library /wp-admin/upload.php3.50 ▲0.2738.88 ▼0.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Evento
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5814.39 ▼0.321.56 ▼0.1341.46 ▼3.06
Dashboard /wp-admin2,210 ▲354.86 ▼0.82101.11 ▼21.3537.77 ▼9.18
Posts /wp-admin/edit.php2,122 ▲222.29 ▲0.3341.86 ▲4.2934.60 ▼2.27
Add New Post /wp-admin/post-new.php1,536 ▲1023.55 ▲0.48682.77 ▼53.1573.38 ▲4.56
Media Library /wp-admin/upload.php1,415 ▲154.34 ▲0.16103.02 ▼12.8341.92 ▼6.12

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • widget_social_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_info_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 38× 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/evento/inc/eventpress/features/eventpress-slider-section.php:229
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/evento/inc/eventplus/sections/section-slider.php:118
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/evento/inc/eventpress/sections/section-countdown.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/evento/inc/eventplus/features/eventplus-typography.php:944
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/evento/inc/eventpress/sections/section-gallery.php:120
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/evento/inc/eventpress/features/eventpress-navigation.php:315
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/evento/inc/widget/info-widget.php:5
    • > PHP Warning
      Use of undefined constant EVENTO_PLUGIN_URL - assumed 'EVENTO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/evento/inc/eventpress/default-pages/upload-media.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/evento/inc/eventplus/sections/section-gallery.php:120
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/evento/inc/eventpress/features/eventpress-typography.php:944

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: corporate, xmas, eventpress, santa, christmas...

evento/evento.php 92% from 13 tests

This is the main PHP file of "Evento" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 185 characters long)

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
Success! There were no dangerous files found in this plugin10,575 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP359395897,510
JavaScript74918532,523
CSS32719542

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2793.10%
▷ Protected methods26.90%
▷ Private methods00.00%
Functions140
▷ Named functions13898.57%
▷ Anonymous functions21.43%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/eventplus/images/color/2.png0.96KB0.08KB▼ 91.21%
(invalid) inc/eventpress/images/about01.png50.13KB0.00KB▼ 100.00%
inc/eventplus/images/logo.png4.77KB3.47KB▼ 27.21%
(invalid) inc/eventpress/images/about02.png109.26KB0.00KB▼ 100.00%
inc/eventpress/images/logo.png4.26KB2.63KB▼ 38.30%