Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.92ms] Passed 4 tests
An overview of server-side resources used by Un-Line-Break
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.14 | 37.87 ▲13.00 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.58 ▼0.56 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 50.94 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 92.95 ▼566.00 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 33.36 ▲0.14 |
Un-Line-Break /wp-admin/options-general.php?page=un-line-break | 3.02 | 31.63 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
unlinebreak |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Un-Line-Break
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲87 | 15.89 ▲0.02 | 7.12 ▼1.34 | 51.44 ▼5.24 |
Dashboard /wp-admin | 2,975 ▲44 | 6.03 ▼0.11 | 144.96 ▼5.16 | 114.54 ▼2.48 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 68.08 ▼4.77 | 95.80 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.76 ▲0.02 | 403.06 ▲0.27 | 118.08 ▲4.45 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.01 | 154.42 ▼2.40 | 120.44 ▼9.51 |
Un-Line-Break /wp-admin/options-general.php?page=un-line-break | 1,191 | 2.34 | 58.19 | 83.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/un-line-break/inc/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/un-line-break/un-line-break.php:34
- > PHP Fatal error
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 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
5 plugin tags: content, auto-paragraph, line breaks, shortcode, wpautop
un-line-break/un-line-break.php Passed 13 tests
The main PHP script in "Un-Line-Break" version 0.2.2 is automatically included on every request by WordPress
53 characters long description:
Improve the readability of content within shortcodes.
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
There were no executable files found in this plugin233 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 102 | 162 |
CSS | 2 | 15 | 8 | 63 |
JavaScript | 1 | 4 | 3 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 2 | |
▷ Global constants | 2 | 100.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/lnt.png | 0.50KB | 0.52KB | 0.00% |