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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.19 ▲13.56 |
Dashboard /wp-admin | 3.07 ▲0.02 | 38.08 ▼7.50 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.29 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.24 ▼578.37 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲98 | 16.07 ▲0.40 | 7.88 ▼2.41 | 44.92 ▼5.81 |
Dashboard /wp-admin | 2,982 ▲45 | 5.97 ▲0.02 | 142.65 ▼11.72 | 107.72 ▼0.45 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.85 ▲0.13 | 69.90 ▲4.32 | 90.32 ▲5.03 |
Add New Post /wp-admin/post-new.php | 1,692 ▲9 | 18.81 ▲0.08 | 409.47 ▲8.75 | 103.59 ▼8.37 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.04 ▲0.01 | 155.46 ▲3.98 | 114.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 270 | 323 | 910 |
JavaScript | 6 | 201 | 255 | 742 |
CSS | 2 | 8 | 1 | 398 |
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 code | 0.25 |
Average class complexity | 11.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.12% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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