79% widget-live-editor

Code Review | Widget Live Editor

WordPress plugin Widget Live Editor scored 79% from 54 tests.

About plugin

  • Plugin page: widget-live-editor
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 5.9.2
  • First release: Jul 11, 2014
  • Latest release: Jan 1, 2018
  • Number of updates: 13
  • Update frequency: every 97.9 days
  • Top authors: ryankienstra (84.62%)rkienstr (23.08%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 3,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼300.02ms] Passed 4 tests

An overview of server-side resources used by Widget Live Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0555.18 ▲4.88
Dashboard /wp-admin3.43 ▲0.0233.37 ▼1.89
Posts /wp-admin/edit.php3.66 ▲0.0238.37 ▲1.50
Add New Post /wp-admin/post-new.php6.89 ▼0.08102.81 ▼1,198.90
Media Library /wp-admin/upload.php3.31 ▲0.0125.66 ▼0.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
widget_widget_live_editor

Browser metrics Passed 4 tests

A check of browser resources used by Widget Live Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲4515.81 ▲0.045.72 ▼0.062.21 ▼0.41
Dashboard /wp-admin2,895 ▲346.22 ▲0.07118.30 ▼13.60156.09 ▼5.11
Posts /wp-admin/edit.php2,691 ▲63.24 ▲0.0060.50 ▼5.88139.47 ▼1.98
Add New Post /wp-admin/post-new.php1,668 ▼9018.06 ▼4.20392.15 ▼49.72156.28 ▲3.78
Media Library /wp-admin/upload.php1,695 ▼35.53 ▲0.02142.29 ▼6.37181.27 ▼9.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_widget_live_editor

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)
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/widget-live-editor/php/templates/widget.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-live-editor/php/class-widget-live-editor.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-live-editor/php/class-widget-live-editor.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: retina, live editor, responsive, svg, widget...

widget-live-editor/widget-live-editor.php Passed 13 tests

The principal PHP file in "Widget Live Editor" v. 1.0.4 is loaded by WordPress automatically on each request
107 characters long description:
A flexible widget, with an image, headline, copy, and link. Resize the image, and link to any page or post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin371 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP767302271
JavaScript1166659
CSS16622
XML15219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.75
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants00.00%
▷ Class constants20100.00%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin