94% redq-events

Code Review | RedQ Events

WordPress plugin RedQ Events scored 94% from 54 tests.

About plugin

  • Plugin page: redq-events
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3.1
  • WordPress version: 5.8.1
  • First release: Feb 5, 2015
  • Latest release: Jan 5, 2016
  • Number of updates: 23
  • Update frequency: every 14.5 days
  • Top authors: redq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,094 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.29ms] Passed 4 tests

Server-side resources used by RedQ Events
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.19 ▲13.56
Dashboard /wp-admin3.07 ▲0.0238.08 ▼7.50
Posts /wp-admin/edit.php3.12 ▲0.0145.29 ▲1.14
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.24 ▼578.37
Media Library /wp-admin/upload.php3.01 ▲0.0137.32 ▲3.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for RedQ Events
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲9816.07 ▲0.407.88 ▼2.4144.92 ▼5.81
Dashboard /wp-admin2,982 ▲455.97 ▲0.02142.65 ▼11.72107.72 ▼0.45
Posts /wp-admin/edit.php2,756 ▲172.85 ▲0.1369.90 ▲4.3290.32 ▲5.03
Add New Post /wp-admin/post-new.php1,692 ▲918.81 ▲0.08409.47 ▲8.75103.59 ▼8.37
Media Library /wp-admin/upload.php1,825 ▲185.04 ▲0.01155.46 ▲3.98114.06 ▼8.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/redq-events/includes/admin/views/html-event-tab.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/redq-events/includes/admin/views/html-event-tickets.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/redq-events/includes/class-rq-events-widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_not_expired() on null in wp-content/plugins/redq-events/templates/event-form/ticket-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/redq-events/includes/admin/views/html-event-data.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

redq-events/redq-event.php 92% from 13 tests

The main file in "RedQ Events" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("redq-events.php" instead of "redq-event.php")

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
There were no executable files found in this plugin2,050 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP15270323910
JavaScript6201255742
CSS281398

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.86
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods64
▷ Static methods00.00%
▷ Public methods6296.88%
▷ Protected methods00.00%
▷ Private methods23.12%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin