Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▼1.07ms] Passed 4 tests
Analyzing server-side resources used by Bing Boards
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 39.26 ▼0.88 |
Dashboard /wp-admin | 3.77 ▲0.46 | 55.50 ▲6.48 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 48.29 ▼1.77 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 90.10 ▼6.40 |
Media Library /wp-admin/upload.php | 3.63 ▲0.39 | 40.79 ▲4.79 |
About /wp-admin/edit.php?post_type=bing_board&page=bing-about | 3.61 | 35.45 |
All Bing Boards /wp-admin/edit.php?post_type=bing_board | 3.75 | 38.57 |
Add New /wp-admin/post-new.php?post_type=bing_board | 3.83 | 53.15 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
bing_activation_notice_global_skip |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bing Boards
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲120 | 13.56 ▼0.83 | 4.94 ▲3.04 | 44.24 ▼5.48 |
Dashboard /wp-admin | 2,237 ▲52 | 5.87 ▼0.01 | 111.77 ▲11.34 | 43.28 ▲4.92 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.03 ▲0.05 | 39.40 ▼2.46 | 32.64 ▼2.48 |
Add New Post /wp-admin/post-new.php | 6,484 ▲4,942 | 20.12 ▲2.04 | 946.31 ▲273.63 | 56.08 ▲1.39 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.19 ▲0.03 | 96.20 ▼30.59 | 41.63 ▼17.17 |
About /wp-admin/edit.php?post_type=bing_board&page=bing-about | 891 | 2.02 | 24.33 | 26.88 |
All Bing Boards /wp-admin/edit.php?post_type=bing_board | 1,079 | 1.96 | 30.07 | 34.48 |
Add New /wp-admin/post-new.php?post_type=bing_board | 1,849 | 4.50 | 95.49 | 48.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- bing_activation_notice_global_skip
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: can_publish in wp-content/plugins/bing-boards/views/search-terms-metabox.template.php on line 2
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/bing-boards/views/search-terms-metabox.template.php on line 15
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/bing-boards/views/scrap-metabox.template.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/bing-boards/views/panels-metabox-single-panel.template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bing-boards/views/search-terms-metabox.template.php:19
- > PHP Notice
Undefined variable: panels in wp-content/plugins/bing-boards/views/panels-metabox.template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bing-boards/views/live-editor.template.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/bing-boards/views/panels-metabox.template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/bing-boards/views/publish-metabox.template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bing-boards/views/about-page.template.php:26
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (An example of a Bing Board on Bing.com), #2 (Building a Bing Board in WordPress), #3 (Panel Editor), #4 (The Panel editor features inline editing!), #5 (Build a panel based on a post.), #6 (Or build a board directly from within a post!)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bing-boards/bing-boards.php Passed 13 tests
The primary PHP file in "Bing Boards" version 1.0.2 is used by WordPress to initiate all plugin functionality
64 characters long description:
Create and submit Bing Boards directly from your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,177 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 862 | 1,129 | 2,084 |
Sass | 2 | 41 | 0 | 1,073 |
JavaScript | 5 | 288 | 287 | 1,004 |
Ruby | 1 | 5 | 3 | 14 |
CSS | 2 | 1 | 20 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 2 | 1.11% |
▷ Public methods | 170 | 94.44% |
▷ Protected methods | 9 | 5.00% |
▷ Private methods | 1 | 0.56% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.91MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/bing-logo.png | 1.93KB | 1.79KB | ▼ 7.25% |
screenshot-1.png | 301.33KB | 96.09KB | ▼ 68.11% |
screenshot-6.png | 311.80KB | 103.92KB | ▼ 66.67% |
screenshot-4.png | 435.63KB | 148.76KB | ▼ 65.85% |
resources/images/bing-logo@2x.png | 3.58KB | 2.76KB | ▼ 22.90% |