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
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼14.82ms] Passed 4 tests
An overview of server-side resources used by BCorp Visual Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.03 | 47.18 ▼6.42 |
Dashboard /wp-admin | 3.31 ▲0.01 | 55.51 ▲6.62 |
Posts /wp-admin/edit.php | 3.37 ▼0.48 | 52.50 ▼11.95 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.80 ▼38.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.89 ▼2.30 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BCorp Visual Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 13.28 ▼1.47 | 1.78 ▼0.11 | 39.40 ▼9.10 |
Dashboard /wp-admin | 2,233 ▲33 | 5.08 ▼0.83 | 114.91 ▼6.66 | 41.53 ▼2.90 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.07 ▲0.07 | 35.46 ▼2.82 | 35.04 ▲3.51 |
Add New Post /wp-admin/post-new.php | 1,535 ▼11 | 23.20 ▲0.13 | 642.55 ▲19.14 | 58.56 ▼9.42 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.19 ▼0.02 | 107.54 ▼9.53 | 44.58 ▼6.12 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bcorp-visual-editor/bcorp_visual_editor.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Donate link: Please fix this invalid URI: "TBA"
bcorp-visual-editor/bcorp_visual_editor.php 92% from 13 tests
This is the main PHP file of "BCorp Visual Editor" version 0.20, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bcorp-visual-editor.php" instead of "bcorp_visual_editor.php")
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 plugin2,321 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 950 |
JavaScript | 2 | 54 | 2 | 827 |
CSS | 2 | 78 | 6 | 387 |
PHP | 1 | 25 | 10 | 157 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/cell-width.png | 0.11KB | 0.11KB | 0.00% |