Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.60ms] Passed 4 tests
An overview of server-side resources used by Live Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 59.03 ▲19.84 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.07 ▼4.14 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.97 ▼2.51 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 105.02 ▼4.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.41 ▲1.01 |
Server storage [IO: ▲30.30MB] [DB: ▲0.07MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- The filesystem usage should be lower than 25MB (currently using 30.30MB)
Filesystem: 279 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Live Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,532 ▲775 | 15.21 ▲0.91 | 43.13 ▲40.79 | 46.22 ▼6.40 |
Dashboard /wp-admin | 2,242 ▲54 | 5.79 ▼0.09 | 97.99 ▼24.39 | 47.19 ▼1.08 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.03 ▲0.02 | 35.74 ▼4.84 | 35.00 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.51 ▲0.23 | 652.95 ▼51.70 | 36.02 ▼21.90 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.28 ▲0.03 | 92.91 ▼20.65 | 46.06 ▼0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 22× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/liveeditor/LolitaFramework/CssLoader/views/lf_css_loader_7.php
- > /wp-content/plugins/liveeditor/LolitaFramework/Configuration/views/meta_box_with_controls.php
- > /wp-content/plugins/liveeditor/app/views/toolbar_node.php
- > /wp-content/plugins/liveeditor/LolitaFramework/CssLoader/views/lf_css_loader_3.php
- > /wp-content/plugins/liveeditor/LolitaFramework/Widgets/views/empty_form.php
- > /wp-content/plugins/liveeditor/LolitaFramework/Configuration/views/meta_box_default.php
- > /wp-content/plugins/liveeditor/LolitaFramework/Controls/Gallery/views/template.php
- > /wp-content/plugins/liveeditor/app/views/title.php
- > /wp-content/plugins/liveeditor/LolitaFramework/CssLoader/views/lf_css_loader_hide.php
- > /wp-content/plugins/liveeditor/LolitaFramework/CssLoader/views/lf_css_loader_4.php
- 131× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'liveeditor\\LolitaFramework\\Controls\\Control' not found in wp-content/plugins/liveeditor/LolitaFramework/Controls/Text/Text.php:7
- > PHP Notice
Undefined variable: class in wp-content/plugins/liveeditor/LolitaFramework/CssLoader/views/lf_css_loader_2.php on line 60
- > PHP Fatal error
Uncaught Error: Call to a member function getName() on null in wp-content/plugins/liveeditor/LolitaFramework/Configuration/views/meta_box_row_side.php:2
- > PHP Notice
Undefined variable: me in wp-content/plugins/liveeditor/LolitaFramework/Controls/Checkboxes/views/checkboxes.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'liveeditor\\LolitaFramework\\Controls\\Control' not found in wp-content/plugins/liveeditor/LolitaFramework/Controls/Gallery/Gallery.php:11
- > PHP Notice
Undefined variable: color in wp-content/plugins/liveeditor/LolitaFramework/CssLoader/views/lf_css_loader_7.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'liveeditor\\LolitaFramework\\Controls\\Control' not found in wp-content/plugins/liveeditor/LolitaFramework/Controls/Password/Password.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function getOptions() on null in wp-content/plugins/liveeditor/LolitaFramework/Controls/Radios/views/radios.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function getAttributesString() on null in wp-content/plugins/liveeditor/LolitaFramework/Controls/Select/views/select.php:1
- > PHP Notice
Undefined variable: control in wp-content/plugins/liveeditor/LolitaFramework/Controls/Button/views/customize_button.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in liveeditor/assets to your readme.txt
- Contributors: The plugin contributors field is missing
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
liveeditor/liveeditor.php Passed 13 tests
"Live Editor" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Plugin for adding live editting functionality to the wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin17,840 lines of code in 240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 1,069 | 4,275 | 7,479 |
JavaScript | 52 | 1,047 | 1,257 | 4,368 |
TypeScript | 17 | 732 | 5,298 | 2,340 |
Sass | 7 | 113 | 1 | 1,568 |
CSS | 26 | 50 | 193 | 1,191 |
JSON | 13 | 0 | 0 | 780 |
Markdown | 1 | 25 | 0 | 59 |
PO File | 2 | 6 | 8 | 34 |
YAML | 1 | 5 | 13 | 14 |
XML | 1 | 1 | 1 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 3 | 4.11% |
▷ Concrete classes | 70 | 95.89% |
▷ Final classes | 0 | 0.00% |
Methods | 495 | |
▷ Static methods | 210 | 42.42% |
▷ Public methods | 428 | 86.46% |
▷ Protected methods | 12 | 2.42% |
▷ Private methods | 55 | 11.11% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 29 | |
▷ Global constants | 13 | 44.83% |
▷ Class constants | 16 | 55.17% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
LolitaFramework/Controls/Repeater/assets/images/sprite.png | 17.94KB | 0.93KB | ▼ 94.83% |
promo/edit_mode.png | 23.11KB | 6.88KB | ▼ 70.22% |
promo/icon-128x128.png | 8.30KB | 3.94KB | ▼ 52.47% |
promo/banner-772x250.png | 27.27KB | 12.05KB | ▼ 55.81% |
promo/icon-256x256.png | 18.28KB | 7.71KB | ▼ 57.84% |