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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.19 ▼9.18 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.92 ▲0.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.55 ▼2.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.85 ▼11.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.43 ▼0.21 | 1.69 ▲0.00 | 41.90 ▼11.17 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.99 | 103.19 ▼4.15 | 40.42 ▲2.13 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.11 ▲0.10 | 35.58 ▼5.06 | 33.45 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,535 ▼8 | 23.29 ▲5.06 | 593.54 ▼39.15 | 58.56 ▼32.01 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.11 | 94.44 ▼8.50 | 40.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 265 | 1,133 | 1,739 |
JSON | 11 | 0 | 0 | 127 |
JavaScript | 4 | 1 | 44 | 83 |
Markdown | 1 | 6 | 0 | 17 |
CSS | 2 | 0 | 0 | 2 |
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 code | 0.21 |
Average class complexity | 3.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 5 | 16.67% |
▷ Concrete classes | 25 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 101 | 65.16% |
▷ Public methods | 151 | 97.42% |
▷ Protected methods | 1 | 0.65% |
▷ Private methods | 3 | 1.94% |
Functions | 22 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 22 | 100.00% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.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