Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.68ms] Passed 4 tests
An overview of server-side resources used by BNS Add Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 51.73 ▲9.11 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.89 ▼18.32 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.73 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.15 ▼16.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.97 ▲0.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BNS Add Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.20 ▼0.04 | 1.62 ▼0.02 | 40.19 ▼2.00 |
Dashboard /wp-admin | 2,192 ▲15 | 5.49 ▼0.17 | 87.26 ▼7.99 | 40.13 ▼1.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.09 | 34.80 ▼6.56 | 33.43 ▼6.89 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.27 | 689.52 ▲36.09 | 63.94 ▲10.92 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.03 | 96.70 ▼3.85 | 43.30 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bns-add-widget/bns-add-widget.php:90
- > PHP Fatal error
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: translation-ready, widget, admin, plugin-only, footer
bns-add-widget/bns-add-widget.php Passed 13 tests
This is the main PHP file of "BNS Add Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Add a widget area to the footer of any theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin202 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 89 | 208 | 146 |
PO File | 1 | 13 | 14 | 53 |
CSS | 1 | 7 | 17 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 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
No PNG files were detected