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.06MB] [CPU: ▼1.85ms] Passed 4 tests
A check of server-side resources used by Wordpress VN oEmbed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.86 ▼3.04 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.20 ▼3.00 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.42 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.02 ▼1.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.61 ▲0.42 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress VN oEmbed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▲0.09 | 1.79 ▼0.04 | 45.16 ▲2.02 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▼0.03 | 87.74 ▼12.21 | 40.05 ▼4.84 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▼0.03 | 40.32 ▲1.61 | 38.87 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.03 | 620.06 ▼10.48 | 57.82 ▲7.85 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.08 | 99.38 ▼5.56 | 45.61 ▼2.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'VNO_DIR/lib/Psr4ClassLoader.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-vn-oembed/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'VN_OEmbed\\Handler\\Base' not found in wp-content/plugins/wp-vn-oembed/Handler/NCT.php:18
- > PHP Warning
require_once(VNO_DIR/lib/Psr4ClassLoader.php): failed to open stream: No such file or directory in wp-content/plugins/wp-vn-oembed/bootstrap.php on line 14
- > PHP Warning
Use of undefined constant VNO_DIR - assumed 'VNO_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-vn-oembed/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'VN_OEmbed\\Handler\\Base' not found in wp-content/plugins/wp-vn-oembed/Handler/Zing.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-vn-oembed/plugin.php:17
- > PHP Fatal error
Uncaught Error: Class 'VN_OEmbed\\Handler\\Base' not found in wp-content/plugins/wp-vn-oembed/Handler/NhacSo.php:18
- > PHP Fatal error
Uncaught Error: Class 'VN_OEmbed\\Handler\\Base' not found in wp-content/plugins/wp-vn-oembed/Handler/TVZing.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (Demo) image required
wp-vn-oembed/plugin.php 85% from 13 tests
"Wordpress VN oEmbed" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-vn-oembed.php" instead of "plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 243 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin297 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 54 | 215 | 297 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin