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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 55.18 ▲4.88 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.37 ▼1.89 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.37 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 102.81 ▼1,198.90 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲45 | 15.81 ▲0.04 | 5.72 ▼0.06 | 2.21 ▼0.41 |
Dashboard /wp-admin | 2,895 ▲34 | 6.22 ▲0.07 | 118.30 ▼13.60 | 156.09 ▼5.11 |
Posts /wp-admin/edit.php | 2,691 ▲6 | 3.24 ▲0.00 | 60.50 ▼5.88 | 139.47 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,668 ▼90 | 18.06 ▼4.20 | 392.15 ▼49.72 | 156.28 ▲3.78 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.02 | 142.29 ▼6.37 | 181.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 67 | 302 | 271 |
JavaScript | 1 | 16 | 66 | 59 |
CSS | 1 | 6 | 6 | 22 |
XML | 1 | 5 | 2 | 19 |
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 code | 0.30 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.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