78% event-espresso-requirements-check

Code Review | Event Espresso Requirements Check

WordPress plugin Event Espresso Requirements Check scored78%from 54 tests.

About plugin

  • Plugin page: event-espresso-re...
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: May 28, 2013
  • Latest release: Nov 29, 2017
  • Number of updates: 12
  • Update frequency: every 137.2 days
  • Top authors: sethshoultes (58.33%)jazzs3quence (50%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,804 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 gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼1.57ms] Passed 4 tests

Server-side resources used by Event Espresso Requirements Check
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2941.72 ▲0.53
Dashboard /wp-admin3.60 ▲0.3051.94 ▲1.63
Posts /wp-admin/edit.php3.66 ▲0.3048.66 ▼2.11
Add New Post /wp-admin/post-new.php6.19 ▲0.3087.36 ▼6.19
Media Library /wp-admin/upload.php3.53 ▲0.2936.93 ▲1.48
Event Espresso Requirements /wp-admin/tools.php?page=espresso_requirements_page3.4734.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Event Espresso Requirements Check
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.231.72 ▲0.0141.36 ▼2.25
Dashboard /wp-admin2,199 ▲225.53 ▼0.1483.25 ▼13.2041.66 ▲1.76
Posts /wp-admin/edit.php2,104 ▲12.11 ▲0.0837.27 ▼3.7534.59 ▼4.89
Add New Post /wp-admin/post-new.php1,531 ▲323.00 ▲0.03660.06 ▼30.4268.95 ▲8.95
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.0599.59 ▼5.1942.95 ▼3.67
Event Espresso Requirements /wp-admin/tools.php?page=espresso_requirements_page1,1972.0423.5332.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=espresso_requirements_page
    • > Notice in wp-content/plugins/event-espresso-requirements-check/espresso_requirements_check.php+396
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/event-espresso-requirements-check/espresso_requirements_check.php:14
    • > PHP Notice
      Undefined index: EE_REQUIREMENTS_IS_ADMIN in wp-content/plugins/event-espresso-requirements-check/assets/phpinfo.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
6 plugin tags: event calendar, forms, event registration, event ticketing, events...

event-espresso-requirements-check/espresso_requirements_check.php 85% from 13 tests

The main file in "Event Espresso Requirements Check" v. 0.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 195 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("event-espresso-requirements-check.php" instead of "espresso_requirements_check.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected728 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22322600
CSS171128

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/events_icon_32.png1.64KB1.48KB▼ 9.61%
assets/glyphicons-halflings.png13.50KB10.35KB▼ 23.34%