77% liveeditor

Code Review | Live Editor

WordPress plugin Live Editor scored 77% from 54 tests.

About plugin

  • Plugin page: liveeditor
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2017
  • Latest release: Mar 5, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: lolitaframework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,361 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3059.03 ▲19.84
Dashboard /wp-admin3.40 ▲0.0949.07 ▼4.14
Posts /wp-admin/edit.php3.51 ▲0.1546.97 ▼2.51
Add New Post /wp-admin/post-new.php6.00 ▲0.11105.02 ▼4.77
Media Library /wp-admin/upload.php3.32 ▲0.0937.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,532 ▲77515.21 ▲0.9143.13 ▲40.7946.22 ▼6.40
Dashboard /wp-admin2,242 ▲545.79 ▼0.0997.99 ▼24.3947.19 ▼1.08
Posts /wp-admin/edit.php2,128 ▲362.03 ▲0.0235.74 ▼4.8435.00 ▼1.20
Add New Post /wp-admin/post-new.php1,553 ▲3423.51 ▲0.23652.95 ▼51.7036.02 ▼21.90
Media Library /wp-admin/upload.php1,427 ▲364.28 ▲0.0392.91 ▼20.6546.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP1201,0694,2757,479
JavaScript521,0471,2574,368
TypeScript177325,2982,340
Sass711311,568
CSS26501931,191
JSON1300780
Markdown125059
PO File26834
YAML151314
XML1117

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 code0.38
Average class complexity9.43
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces23
Interfaces3
Traits0
Classes73
▷ Abstract classes34.11%
▷ Concrete classes7095.89%
▷ Final classes00.00%
Methods495
▷ Static methods21042.42%
▷ Public methods42886.46%
▷ Protected methods122.42%
▷ Private methods5511.11%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants29
▷ Global constants1344.83%
▷ Class constants1655.17%
▷ Public constants16100.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
FileSize - originalSize - compressedSavings
LolitaFramework/Controls/Repeater/assets/images/sprite.png17.94KB0.93KB▼ 94.83%
promo/edit_mode.png23.11KB6.88KB▼ 70.22%
promo/icon-128x128.png8.30KB3.94KB▼ 52.47%
promo/banner-772x250.png27.27KB12.05KB▼ 55.81%
promo/icon-256x256.png18.28KB7.71KB▼ 57.84%