Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.39ms] Passed 4 tests
An overview of server-side resources used by BNS Early Adopter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.37 ▲1.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.12 ▲5.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.93 ▲5.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.62 ▼2.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.45 ▲1.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_bns-early-adopter |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by BNS Early Adopter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.18 ▼1.20 | 1.60 ▼0.28 | 42.90 ▼3.82 |
Dashboard /wp-admin | 2,203 ▲12 | 5.78 ▼0.12 | 96.26 ▼5.44 | 38.49 ▼5.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.00 | 39.40 ▲6.05 | 39.17 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.30 ▼0.11 | 640.22 ▼26.09 | 49.40 ▼1.54 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.14 | 95.07 ▼16.33 | 42.67 ▼3.06 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_bns-early-adopter
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bns-early-adopter/bns-early-adopter.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: shortcode, admin, version, widget
bns-early-adopter/bns-early-adopter.php Passed 13 tests
This is the main PHP file of "BNS Early Adopter" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
Show off you are an early adopter of WordPress (alpha, beta, release candidate, and/or stable versions)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin407 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 126 | 322 | 280 |
PO File | 2 | 28 | 28 | 111 |
CSS | 1 | 3 | 24 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin