Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▲3.60ms] Passed 4 tests
An overview of server-side resources used by BTB Full Width Section
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.84 ▲0.64 |
Dashboard /wp-admin | 3.32 ▲0.02 | 55.50 ▲0.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 55.37 ▲8.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 112.63 ▲23.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 43.71 ▲4.86 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BTB Full Width Section
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲14 | 13.22 ▼1.52 | 4.84 ▲2.79 | 39.34 ▼5.94 |
Dashboard /wp-admin | 2,209 ▲3 | 4.87 ▲0.02 | 110.42 ▼2.37 | 42.80 ▼0.71 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.97 ▼0.05 | 39.46 ▲3.94 | 34.95 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,643 ▲123 | 20.97 ▼2.54 | 772.89 ▲89.51 | 60.84 ▲7.34 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.15 ▼0.08 | 95.78 ▼14.88 | 60.29 ▲12.56 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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 | 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/btb-full-width-section/btb-full-width-section.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: block, design
btb-full-width-section/btb-full-width-section.php Passed 13 tests
"BTB Full Width Section" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
25 characters long description:
Full width Section block.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin28,792 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 28,406 |
JavaScript | 4 | 18 | 71 | 244 |
Sass | 2 | 19 | 1 | 87 |
PO File | 1 | 12 | 12 | 43 |
PHP | 2 | 4 | 23 | 10 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.99MB with 0.69MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 1,008.80KB | 297.43KB | ▼ 70.52% |