Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-bing-background/includes/lessc.inc.php+717
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.09MB] [CPU: ▼54.68ms] Passed 4 tests
Analyzing server-side resources used by WP Bing Background
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▼0.56 | 8.78 ▼36.71 |
Dashboard /wp-admin | 2.92 ▼0.38 | 8.42 ▼41.33 |
Posts /wp-admin/edit.php | 2.92 ▼0.43 | 8.03 ▼53.80 |
Add New Post /wp-admin/post-new.php | 2.92 ▼2.97 | 8.70 ▼86.86 |
Media Library /wp-admin/upload.php | 2.92 ▼0.31 | 10.24 ▼26.35 |
WP Bing Background /wp-admin/options-general.php?page=wp-bing-background | 2.92 | 9.89 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp_bing_background_options |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Bing Background: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.28 ▼1.08 | 1.77 ▼0.72 | 38.40 ▼5.31 |
Dashboard /wp-admin | 2,212 ▲27 | 4.84 ▼1.06 | 104.42 ▲4.62 | 36.28 ▼8.26 |
Posts /wp-admin/edit.php | 2,095 ▼1 | 2.05 ▼0.12 | 39.88 ▼9.27 | 34.34 ▼6.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 21.00 ▲3.62 | 662.37 ▼25.10 | 66.12 ▲18.20 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.22 ▲0.03 | 106.88 ▲6.67 | 47.33 ▲0.42 |
WP Bing Background /wp-admin/options-general.php?page=wp-bing-background | 922 | 2.04 | 25.28 | 25.28 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-bing-background/includes/lessc.inc.php+717
Array and string offset access syntax with curly braces is deprecated
- The plugin did not uninstall successfully, leaving 10 files (0.15MB) in the plugin directory
- (new file) wp-bing-background.php
- (new file) css/style.less
- (new file) includes/lessc.inc.php
- (new file) includes/imgcompress.class.php
- (new file) languages/wp-bing-background-zh_CN.mo
- (new file) languages/wp-bing-background.pot
- (new file) js/myScript.js
- (new file) index.php
- (new file) languages/wp-bing-background-zh_CN.po
- (new file) readme.txt
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- wp_bing_background_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Deprecated in wp-content/plugins/wp-bing-background/includes/lessc.inc.php+2478
Array and string offset access syntax with curly braces is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Warning in wp-content/plugins/wp-bing-background/wp-bing-background.php+521
mkdir(): No such file or directory
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Warning in wp-content/plugins/wp-bing-background/wp-bing-background.php+434
opendir(wp-content/uploads/bing/images): failed to open dir: No such file or directory
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Warning in wp-content/plugins/wp-bing-background/wp-bing-background.php+468
fopen(wp-content/uploads/bing/images/b27db2590319861c0f72cf9035b50e21.jpg): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Warning in wp-content/plugins/wp-bing-background/wp-bing-background.php+561
fwrite() expects parameter 1 to be resource, bool given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Warning in wp-content/plugins/wp-bing-background/wp-bing-background.php+562
fclose() expects parameter 1 to be resource, bool given
- > GET request to /wp-admin/options-general.php?page=wp-bing-background
- > Warning in wp-content/plugins/wp-bing-background/wp-bing-background.php+560
fopen(wp-content/uploads/bing/css/style.css): failed to open stream: No such file or directory
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
Please fix the following items
- 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/wp-bing-background/wp-bing-background.php:718
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: background, wordpress, bing, image
wp-bing-background/wp-bing-background.php Passed 13 tests
The main PHP script in "WP Bing Background" version 1.1.4 is automatically included on every request by WordPress
70 characters long description:
Change the wordpress's background to the image which provided by Bing.
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
No dangerous file extensions were detected3,456 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 693 | 573 | 3,261 |
PO File | 1 | 61 | 60 | 165 |
JavaScript | 1 | 1 | 9 | 18 |
LESS | 1 | 6 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 103.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 352.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 20 | 10.26% |
▷ Public methods | 50 | 25.64% |
▷ Protected methods | 141 | 72.31% |
▷ Private methods | 4 | 2.05% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
There were not PNG files found in your plugin