Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/video-audio-bbcodes/video-audio-bbcodes.php+41
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.45ms] Passed 4 tests
This is a short check of server-side resources used by Video and Audio BBCodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.86 ▼33.12 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.36 ▼41.36 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.67 ▼41.42 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.40 ▼97.91 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.01 ▼30.92 |
Video Audio BBCode /wp-admin/options-general.php?page=video-audio-bbcodes | 2.05 | 5.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Video and Audio BBCodes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.12 | 1.58 ▼0.07 | 38.83 ▼6.63 |
Dashboard /wp-admin | 2,210 ▲19 | 5.84 ▲0.94 | 101.39 ▼0.74 | 38.89 ▼2.05 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.01 | 38.25 ▼5.28 | 35.36 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.28 ▼5.01 | 609.01 ▼38.23 | 48.60 ▼1.33 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.10 | 93.42 ▼8.91 | 41.42 ▲0.35 |
Video Audio BBCode /wp-admin/options-general.php?page=video-audio-bbcodes | 854 | 2.03 | 25.64 | 27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/video-audio-bbcodes/video-audio-bbcodes.php+41
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=video-audio-bbcodes
- > Deprecated in wp-content/plugins/video-audio-bbcodes/video-audio-bbcodes.php+41
Function create_function() is deprecated
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/video-audio-bbcodes/options-form-template.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-audio-bbcodes/video-audio-bbcodes.php on line 32
- > PHP Notice
Undefined variable: whitelist_enabled in wp-content/plugins/video-audio-bbcodes/options-form-template.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/video-audio-bbcodes/video-audio-bbcodes.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-audio-bbcodes/video-audio-bbcodes-admin.php:7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=video-audio-bbcodes
- > Network (severe)
https://button.flattr.com/loader.js?mode=auto - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== video-audio-bbcodes ===
)
video-audio-bbcodes/video-audio-bbcodes.php Passed 13 tests
"Video and Audio BBCodes" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Adds support for video and audio bbcodes to wordpress, buddypress and bbpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin327 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 107 | 98 | 327 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected