Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.24ms] Passed 4 tests
This is a short check of server-side resources used by WP Brightcove Portal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.93 ▼6.85 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.71 ▼2.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.51 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 82.71 ▼20.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.21 ▲1.22 |
Brightcove Portal /wp-admin/admin.php?page=wp-brightcove-portal | 3.60 | 31.86 |
Brightcove Players /wp-admin/admin.php?page=wp-brightcove-portal-players | 3.28 | 29.85 |
Brightcove Settings /wp-admin/admin.php?page=wp-brightcove-portal-settings | 3.28 | 29.74 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_brightcoveVideos |
wp_brightcoveSettings |
wp_brightcovePlayers |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
bcPortal_db_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Brightcove Portal
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.82 ▼0.55 | 7.29 ▲5.57 | 38.47 ▼3.34 |
Dashboard /wp-admin | 2,210 ▲33 | 5.56 ▼0.06 | 85.74 ▼1.89 | 74.92 ▲33.09 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.99 ▼0.03 | 34.83 ▼1.72 | 35.02 ▼0.13 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,749 | 23.99 ▲0.83 | 927.95 ▲317.33 | 58.96 ▲4.02 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.18 ▼0.07 | 97.27 ▼13.93 | 73.49 ▲25.51 |
Brightcove Portal /wp-admin/admin.php?page=wp-brightcove-portal | 866 | 1.85 | 25.00 | 53.11 |
Brightcove Players /wp-admin/admin.php?page=wp-brightcove-portal-players | 851 | 1.94 | 28.51 | 29.17 |
Brightcove Settings /wp-admin/admin.php?page=wp-brightcove-portal-settings | 933 | 1.89 | 26.68 | 33.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_brightcoveSettings
- wp_brightcovePlayers
- wp_brightcoveVideos
- This plugin does not fully uninstall, leaving 7 options in the database
- bcPortal_db_version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% 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)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-brightcove-portal-settings
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-brightcove-portal/pages/footer.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-brightcove-portal/pages/videos.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-brightcove-portal/wp-brightcove-portal.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-brightcove-portal/pages/players.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-brightcove-portal/pages/header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-brightcove-portal/pages/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (first screenshot), #2 (second screenshot), #3 (third screenshot)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-brightcove-portal ===
)
wp-brightcove-portal/wp-brightcove-portal.php 92% from 13 tests
"WP Brightcove Portal" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected17,128 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 2,024 | 6,388 | 7,820 |
CSS | 4 | 77 | 60 | 7,276 |
PHP | 8 | 783 | 374 | 2,032 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.59% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 1 | 6.67% |
▷ Class constants | 14 | 93.33% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 83.61KB | 28.47KB | ▼ 65.94% |
screenshot-2.png | 36.60KB | 10.96KB | ▼ 70.06% |
screenshot-3.png | 42.22KB | 12.82KB | ▼ 69.63% |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
img/menuIcon.png | 3.34KB | 0.94KB | ▼ 71.78% |