Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/eventos/includes/class-wp-eventos-activator.php+42
Use of undefined constant RESERVAS_ONLINE_BASE_URL - assumed 'RESERVAS_ONLINE_BASE_URL' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.23ms] Passed 4 tests
Analyzing server-side resources used by Eventos
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.59 ▼0.84 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.85 ▼0.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.61 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.49 ▼3.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.77 ▲0.97 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Eventos
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.18 | 1.65 ▼0.20 | 43.84 ▼4.00 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.06 | 102.96 ▲0.58 | 39.25 ▼6.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 34.74 ▼2.20 | 34.84 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.44 ▼4.76 | 614.81 ▼63.60 | 60.68 ▼2.40 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▲0.03 | 96.39 ▲2.75 | 41.09 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/eventos/public/partials/wp-eventos-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_load_alloptions() in wp-content/plugins/eventos/admin/partials/wp-eventos-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid version format
- Contributors: Contributors not specified
eventos/wp-eventos.php 85% from 13 tests
The main file in "Eventos" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("eventos.php" instead of "wp-eventos.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin364 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 128 | 565 | 358 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 50.77KB | 36.59KB | ▼ 27.92% |
assets/icon-128x128.png | 15.54KB | 10.29KB | ▼ 33.75% |
assets/default/img/logo.png | 5.89KB | 2.88KB | ▼ 51.06% |
assets/banner-772x250.png | 141.06KB | 99.39KB | ▼ 29.54% |
admin/partials/assets/default/img/logo.png | 5.89KB | 2.88KB | ▼ 51.06% |