10% lolita-events

Code Review | Lolita Events

WordPress plugin Lolita Events scored 10% from 54 tests.

About plugin

  • Plugin page: lolita-events
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 7, 2019
  • Latest release: Aug 7, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: therealguriev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 485 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
These installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/lolita-events/LolitaFramework/LF.php+26
    syntax error, unexpected 'Fn' (T_FN), expecting identifier (T_STRING) or '{'

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.83ms] Passed 4 tests

Server-side resources used by Lolita Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.19 ▼9.18
Dashboard /wp-admin3.31 ▲0.0048.92 ▲0.71
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▼2.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.85 ▼11.92
Media Library /wp-admin/upload.php3.23 ▲0.0035.80 ▲0.13

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Lolita Events
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.43 ▼0.211.69 ▲0.0041.90 ▼11.17
Dashboard /wp-admin2,206 ▲155.85 ▲0.99103.19 ▼4.1540.42 ▲2.13
Posts /wp-admin/edit.php2,089 ▼32.11 ▲0.1035.58 ▼5.0633.45 ▲2.62
Add New Post /wp-admin/post-new.php1,535 ▼823.29 ▲5.06593.54 ▼39.1558.56 ▼32.01
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.1194.44 ▼8.5040.99 ▼4.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lolita-events/app/views/events-settings.php
    • > /wp-content/plugins/lolita-events/app/views/widget/widget.php
    • > /wp-content/plugins/lolita-events/app/views/events-widget.php
    • > /wp-content/plugins/lolita-events/app/views/event-options.php
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'LolitaFramework\\Configuration\\Modules\\Actions' not found in wp-content/plugins/lolita-events/LolitaFramework/Configuration/Modules/Filters.php:9
    • > PHP Notice
      Undefined variable: p in wp-content/plugins/lolita-events/app/views/event-options.php on line 2
    • > PHP Notice
      Trying to get property 'location' of non-object in wp-content/plugins/lolita-events/app/views/event-options.php on line 2
    • > PHP Notice
      Undefined variable: p in wp-content/plugins/lolita-events/app/views/event-options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lolita-events/app/views/widget/form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'LolitaFramework\\Data\\Path' not found in wp-content/plugins/lolita-events/LolitaFramework/Data/View.php:11
    • > PHP Notice
      Trying to get property 'from' of non-object in wp-content/plugins/lolita-events/app/views/event-options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'LolitaFramework\\Configuration\\Modules\\RegisterScripts' not found in wp-content/plugins/lolita-events/LolitaFramework/Configuration/Modules/RegisterStyles.php:10
    • > PHP Notice
      Undefined variable: p in wp-content/plugins/lolita-events/app/views/event-options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'LolitaFramework\\Data\\Str' not found in wp-content/plugins/lolita-events/LolitaFramework/Data/Path.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in lolita-events/assets to your readme.txt
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

lolita-events/events.php 92% from 13 tests

The entry point to "Lolita Events" version 0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lolita-events.php" instead of "events.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,968 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP362651,1331,739
JSON1100127
JavaScript414483
Markdown16017
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.73
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes30
▷ Abstract classes516.67%
▷ Concrete classes2583.33%
▷ Final classes00.00%
Methods155
▷ Static methods10165.16%
▷ Public methods15197.42%
▷ Protected methods10.65%
▷ Private methods31.94%
Functions22
▷ Named functions00.00%
▷ Anonymous functions22100.00%
Constants11
▷ Global constants763.64%
▷ Class constants436.36%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected