73% etevents

Code Review | ETEvents

WordPress plugin ETEvents scored73%from 54 tests.

About plugin

  • Plugin page: etevents
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.6
  • WordPress version: 6.3.1
  • First release: Oct 16, 2013
  • Latest release: Aug 31, 2016
  • Number of updates: 22
  • Update frequency: every 48.0 days
  • Top authors: ironspike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.89ms] Passed 4 tests

Server-side resources used by ETEvents
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.27 ▼1.70
Dashboard /wp-admin3.37 ▲0.0653.55 ▲2.71
Posts /wp-admin/edit.php3.48 ▲0.1253.66 ▲2.17
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.53 ▼14.72
Media Library /wp-admin/upload.php3.29 ▲0.0638.89 ▲3.89
Bookings /wp-admin/admin.php?page=etevents/etevents.php3.3133.89
ETEvents /wp-admin/options-general.php?page=lj_etevents3.2432.75
About & Help /wp-admin/admin.php?page=etevents/etevents.phpabout3.2732.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
wp_lj_etevents
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ETEvents
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.35 ▲0.072.10 ▼0.0643.32 ▼6.46
Dashboard /wp-admin2,230 ▲535.60 ▲0.0385.03 ▼15.6779.10 ▲34.68
Posts /wp-admin/edit.php2,144 ▲441.97 ▼0.0639.13 ▼0.6535.25 ▲0.01
Add New Post /wp-admin/post-new.php6,432 ▲4,89727.54 ▲9.33971.55 ▲310.0865.30 ▼8.50
Media Library /wp-admin/upload.php1,441 ▲414.17 ▼0.11100.33 ▼8.4483.97 ▲37.35
Bookings /wp-admin/admin.php?page=etevents/etevents.php8652.0029.3631.78
ETEvents /wp-admin/options-general.php?page=lj_etevents9042.0323.6530.47
About & Help /wp-admin/admin.php?page=etevents/etevents.phpabout1,0192.0427.4439.56

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=lj_etevents
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=lj_etevents
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lj_etevents
    • > Notice in wp-content/plugins/etevents/etevents_settings.php+206
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/etevents/etevents_about.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/etevents/page-bookings.php:9
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/etevents/etevents_bookings.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/etevents/etevents.php:215
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/etevents/etevents_bookings.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/etevents/etevents_settings.php:45

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: users, admin, booking, reservations, elegant themes...

etevents/etevents.php Passed 13 tests

The primary PHP file in "ETEvents" version 1.1 is used by WordPress to initiate all plugin functionality
87 characters long description:
This plugin works was developed to work with the Event Theme created by Elegant Themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,720 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP63074321,099
CSS18137621

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/etevents.png27.24KB0.97KB▼ 96.42%