Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/bvn-satellite/bvn-satellite.php+281
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼53.40ms] Passed 4 tests
Server-side resources used by BVN Satellite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 4.74 ▼36.43 |
Dashboard /wp-admin | 2.19 ▼1.12 | 6.89 ▼43.24 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 5.95 ▼43.33 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.62 ▼90.60 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.31 ▼32.41 |
BVN Satellite /wp-admin/options-general.php?page=bvn-satellite-panel | 2.19 | 7.04 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_bvn_satellite |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
BVN Satellite: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.16 ▼1.23 | 1.86 ▼0.94 | 42.77 ▼3.33 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼0.04 | 112.81 ▲9.89 | 42.94 ▲3.71 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 38.07 ▲2.93 | 33.56 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.82 ▼0.70 | 678.78 ▲70.98 | 57.23 ▲5.51 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.14 ▼0.14 | 101.93 ▼1.08 | 47.06 ▲3.81 |
BVN Satellite /wp-admin/options-general.php?page=bvn-satellite-panel | 950 | 2.02 | 27.94 | 30.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/bvn-satellite/bvn-satellite.php+281
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_bvn_satellite
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=bvn-satellite-panel
- > Deprecated in wp-content/plugins/bvn-satellite/bvn-satellite.php+281
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bvn-satellite/bvn-satellite.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bvn-satellite/bvn-satellite-panel.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== bvn-satellite ===
)
bvn-satellite/bvn-satellite.php Passed 13 tests
"BVN Satellite" version 1.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Reads Data from the BVN.ch API and displays them in a WordPress Widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin594 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 125 | 171 | 594 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin