Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼39.38ms] Passed 4 tests
This is a short check of server-side resources used by Bottom Stack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.27 ▲0.21 |
Dashboard /wp-admin | 3.04 ▼0.26 | 25.98 ▼29.20 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 26.75 ▼27.90 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.84 | 28.50 ▼84.68 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 24.31 ▼15.74 |
Bottom Stack /wp-admin/options-general.php?page=bottom-stack | 3.04 | 28.72 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 30 new options
New WordPress options |
---|
btmstack_pages7 |
btmstack_data6 |
db_upgraded |
btmstack_posts5 |
widget_theysaidso_widget |
btmstack_posts3 |
btmstack_posts2 |
btmstack_pages8 |
btmstack_pages4 |
btmstack_posts8 |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bottom Stack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▲0.01 | 1.67 ▼0.05 | 44.98 ▼2.21 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.03 | 92.91 ▲1.25 | 42.44 ▲2.28 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.02 ▲0.04 | 40.80 ▲3.44 | 37.44 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.35 ▲0.24 | 650.25 ▼28.26 | 60.28 ▲5.29 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.06 | 96.08 ▼20.35 | 43.24 ▼4.78 |
Bottom Stack /wp-admin/options-general.php?page=bottom-stack | 1,208 | 2.12 | 27.94 | 31.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 30 options in the database
- btmstack_pages3
- btmstack_posts3
- btmstack_pages8
- btmstack_pages5
- btmstack_data1
- btmstack_pages6
- btmstack_posts5
- btmstack_posts8
- btmstack_posts2
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bottom-stack
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bottom-stack/bottom-stack.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Bottom Stack Settings page.) image not found
bottom-stack/bottom-stack.php 92% from 13 tests
Analyzing the main PHP file in "Bottom Stack" version 1.0.2
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected305 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 17 | 198 |
PO File | 1 | 19 | 19 | 60 |
CSS | 1 | 1 | 0 | 47 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 2 | 20.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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 98.86KB | 39.98KB | ▼ 59.55% |