10% eventos

Code Review | Eventos

WordPress plugin Eventos scored10%from 54 tests.

About plugin

  • Plugin page: eventos
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 26, 2018
  • Latest release: May 2, 2018
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: ticketself (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,220 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.59 ▼0.84
Dashboard /wp-admin3.31 ▲0.0047.85 ▼0.26
Posts /wp-admin/edit.php3.36 ▲0.0046.61 ▼0.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.49 ▼3.15
Media Library /wp-admin/upload.php3.23 ▲0.0034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.181.65 ▼0.2043.84 ▼4.00
Dashboard /wp-admin2,209 ▲214.85 ▼0.06102.96 ▲0.5839.25 ▼6.44
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0134.74 ▼2.2034.84 ▲2.51
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.76614.81 ▼63.6060.68 ▼2.40
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.0396.39 ▲2.7541.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP12128565358
JavaScript24546
CSS2080

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 code0.18
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png50.77KB36.59KB▼ 27.92%
assets/icon-128x128.png15.54KB10.29KB▼ 33.75%
assets/default/img/logo.png5.89KB2.88KB▼ 51.06%
assets/banner-772x250.png141.06KB99.39KB▼ 29.54%
admin/partials/assets/default/img/logo.png5.89KB2.88KB▼ 51.06%