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
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/wp_dailymotion.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; WST_wp_dailymotion_Widget has a deprecated constructor
Server metrics [RAM: ▼1.79MB] [CPU: ▼54.96ms] Passed 4 tests
Server-side resources used by WP Dailymotion Video Fetcher
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.27 | 5.59 ▼34.81 |
Dashboard /wp-admin | 2.22 ▼1.09 | 6.82 ▼47.02 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 7.67 ▼45.33 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 7.68 ▼92.67 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 7.82 ▼32.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_wst_wp_dailymotion |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Dailymotion Video Fetcher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.38 ▲0.02 | 1.94 ▼0.02 | 46.18 ▼1.11 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▼0.02 | 96.41 ▲10.03 | 40.59 ▲0.01 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.03 | 41.84 ▲3.76 | 35.10 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▼0.05 | 649.29 ▲20.70 | 50.09 ▼0.00 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.28 ▲0.08 | 104.49 ▼1.90 | 46.89 ▼0.05 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/wp_dailymotion.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; WST_wp_dailymotion_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wst_wp_dailymotion
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/widgets.php
- > /wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/wp_dailymotion.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 27
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 28
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-dailymotion-video-fetcher ===
)
wp-dailymotion-video-fetcher/wp-dailymotion-video-fetcher.php 85% from 13 tests
Analyzing the main PHP file in "WP Dailymotion Video Fetcher" version 1...
Please take the time to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected855 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 50 | 18 | 324 |
JavaScript | 3 | 2 | 6 | 276 |
CSS | 2 | 22 | 6 | 255 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 7 | 63.64% |
▷ Public methods | 11 | 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 | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/css/icon.png | 1.01KB | 0.26KB | ▼ 73.91% |
app/assets/css/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |