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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 41.72 ▲0.53 |
Dashboard /wp-admin | 3.60 ▲0.30 | 51.94 ▲1.63 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 48.66 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 87.36 ▼6.19 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 36.93 ▲1.48 |
Event Espresso Requirements /wp-admin/tools.php?page=espresso_requirements_page | 3.47 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.23 | 1.72 ▲0.01 | 41.36 ▼2.25 |
Dashboard /wp-admin | 2,199 ▲22 | 5.53 ▼0.14 | 83.25 ▼13.20 | 41.66 ▲1.76 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.11 ▲0.08 | 37.27 ▼3.75 | 34.59 ▼4.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.00 ▲0.03 | 660.06 ▼30.42 | 68.95 ▲8.95 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.23 ▲0.05 | 99.59 ▼5.19 | 42.95 ▼3.67 |
Event Espresso Requirements /wp-admin/tools.php?page=espresso_requirements_page | 1,197 | 2.04 | 23.53 | 32.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 22 | 600 |
CSS | 1 | 7 | 1 | 128 |
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 code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/events_icon_32.png | 1.64KB | 1.48KB | ▼ 9.61% |
assets/glyphicons-halflings.png | 13.50KB | 10.35KB | ▼ 23.34% |