Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/osbn/osbn.php+314
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼50.70ms] Passed 4 tests
A check of server-side resources used by OSBN
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.39 ▼35.14 |
Dashboard /wp-admin | 2.17 ▼1.13 | 5.37 ▼43.27 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 8.50 ▼38.46 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.50 ▼85.91 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 6.69 ▼29.10 |
OSBN /wp-admin/options-general.php?page=osbn-option-page | 2.17 | 5.92 |
Server storage [IO: ▲0.05MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
osbn_data |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_osbn_widget |
osbn_options |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by OSBN
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.36 ▼1.02 | 1.89 ▲0.31 | 43.91 ▲1.43 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼1.08 | 107.53 ▲3.72 | 40.01 ▼1.02 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.06 ▲0.06 | 39.67 ▲5.65 | 34.47 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,537 ▲16 | 23.15 ▼0.05 | 649.52 ▼11.56 | 54.62 ▲1.08 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.24 ▲0.09 | 97.09 ▲3.02 | 38.71 ▼3.78 |
OSBN /wp-admin/options-general.php?page=osbn-option-page | 1,415 | 3.33 | 51.81 | 48.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/osbn/osbn.php+314
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=osbn-option-page
- > Deprecated in wp-content/plugins/osbn/osbn.php+314
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=osbn-option-page
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Osbn_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=osbn-option-page
- > Notice in wp-content/plugins/osbn/osbn.php+87
Undefined index: settings-updated
- > GET request to /wp-admin/options-general.php?page=osbn-option-page
- > User deprecated in wp-includes/functions.php+5737
Function wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/osbn/osbn.php:37
- > 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
There were not plugin tags detected
osbn/osbn.php Passed 13 tests
The main PHP script in "OSBN" version 1.1.5 is automatically included on every request by WordPress
100 characters long description:
Dies ist das offizielle WordPress-Plugin für Mitglieder des Open-Source-Blog-Netzwerkes (OSBN).
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
Good job! No executable or dangerous file extensions detected346 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 102 | 102 | 346 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/osbn-button-rot.png | 3.77KB | 2.67KB | ▼ 29.23% |
img/osbn-button-gruen.png | 4.44KB | 2.72KB | ▼ 38.84% |
img/osbn-button-gelb.png | 4.25KB | 2.74KB | ▼ 35.56% |
img/osbn-button-violett.png | 4.42KB | 2.73KB | ▼ 38.34% |
img/osbn-button-blau.png | 4.31KB | 2.67KB | ▼ 38.22% |