Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.86ms] Passed 4 tests
Server-side resources used by Visual Text Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.61 ▼1.54 |
Dashboard /wp-admin | 3.38 ▲0.08 | 53.69 ▲0.87 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 55.61 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 102.81 ▲10.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.41 ▼4.99 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
overlaycolor |
autop |
widget_theysaidso_widget |
mediabuttons |
visual_editor_mce |
editorheight |
can_compress_scripts |
dragndrop |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Visual Text Editor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲52 | 13.32 ▲0.07 | 1.82 ▼0.04 | 41.91 ▼4.06 |
Dashboard /wp-admin | 2,235 ▲29 | 5.17 ▼0.68 | 102.53 ▼3.22 | 85.06 ▲42.25 |
Posts /wp-admin/edit.php | 2,135 ▲43 | 2.31 ▲0.32 | 39.59 ▼5.19 | 33.71 ▼5.77 |
Add New Post /wp-admin/post-new.php | 1,561 ▲27 | 18.52 ▼5.00 | 613.95 ▼72.08 | 37.35 ▼21.76 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.32 ▲0.10 | 90.50 ▼11.92 | 82.67 ▲41.04 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 12 options in the database
- dragndrop
- visual_editor_mce
- overlaycolor
- can_compress_scripts
- mediabuttons
- widget_theysaidso_widget
- widget_recent-comments
- autop
- db_upgraded
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/visual-text-editor/includes/class-admin.php
- > /wp-content/plugins/visual-text-editor/includes/class-visual-editor.php
- > /wp-content/plugins/visual-text-editor/visual-text-editor.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/visual-text-editor/includes/class-widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tested up to: Invalid version format
- Tags: Please delete some tags, you are using 41 tag instead of maximum 10
visual-text-editor/visual-text-editor.php 92% from 13 tests
The main PHP script in "Visual Text Editor" version 1.2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin786 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 73 | 164 | 345 |
PHP | 5 | 73 | 38 | 265 |
PO File | 2 | 48 | 54 | 116 |
CSS | 1 | 3 | 0 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.31MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/2.png | 167.70KB | 44.99KB | ▼ 73.17% |
screenshot/3.png | 123.22KB | 35.30KB | ▼ 71.35% |
screenshot/1.png | 19.25KB | 6.37KB | ▼ 66.90% |
img/wpve-icon.png | 0.76KB | 0.71KB | ▼ 6.92% |
img/uploader-icons.png | 1.52KB | 2.04KB | 0.00% |