Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.35ms] Passed 4 tests
A check of server-side resources used by Automatic NBSP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 46.08 ▲3.03 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.90 ▼1.67 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.62 ▼5.51 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 101.20 ▲2.75 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.72 ▲7.26 |
Automatic NBSP /wp-admin/options-general.php?page=dgwt_nbsp_options | 3.33 | 34.01 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
dgwt_nbsp_version |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
dgwt_automatic_nbsp |
widget_recent-posts |
Browser metrics Passed 4 tests
Automatic NBSP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.23 ▼1.15 | 5.06 ▲3.24 | 42.43 ▼2.79 |
Dashboard /wp-admin | 2,211 ▲20 | 5.85 ▲0.93 | 99.41 ▼14.10 | 40.10 ▼7.97 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.02 | 40.11 ▲0.90 | 34.67 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.07 ▲0.09 | 654.60 ▼21.62 | 57.97 ▲5.57 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.23 ▲0.07 | 100.60 ▼2.24 | 43.77 ▲0.23 |
Automatic NBSP /wp-admin/options-general.php?page=dgwt_nbsp_options | 923 | 1.72 | 24.99 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- dgwt_nbsp_version
- dgwt_automatic_nbsp
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: non-breaking space, sierotki, punctuation marks, nbsp, polish...
automatic-nbsp/automatic-nbsp.php Passed 13 tests
"Automatic NBSP" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Automatically adds a non-breaking space ( ) in the content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected803 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 267 | 194 | 694 |
PO File | 1 | 33 | 44 | 89 |
JavaScript | 1 | 19 | 4 | 14 |
CSS | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 2 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 50.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG files were detected