Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/dailymotion-search-and-publish-videos/classes/ocv_dm.php+47
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼0.90MB] [CPU: ▼172.21ms] Passed 4 tests
This is a short check of server-side resources used by DailyMotion Search and Publish Videos
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.30 ▲12.81 |
Dashboard /wp-admin | 2.76 ▼0.30 | 20.12 ▼25.43 |
Posts /wp-admin/edit.php | 2.76 ▼0.35 | 17.01 ▼27.12 |
Add New Post /wp-admin/post-new.php | 2.76 ▼2.68 | 20.76 ▼623.09 |
Media Library /wp-admin/upload.php | 2.76 ▼0.25 | 24.69 ▼13.19 |
- Vimeo Videos /wp-admin/admin.php?page=ocv_vimeo | 2.76 | 20.62 |
- User Settings /wp-admin/admin.php?page=ocv_settings | 2.76 | 25.26 |
- Youtube Videos /wp-admin/admin.php?page=ocv_youtube | 2.76 | 21.81 |
- DailyMotion Videos /wp-admin/admin.php?page=ocv_dailymotion | 2.76 | 15.99 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for DailyMotion Search and Publish Videos
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲173 | 16.54 ▲0.98 | 8.46 ▲0.81 | 48.70 ▲1.26 |
Dashboard /wp-admin | 3,041 ▲110 | 6.68 ▲0.55 | 141.42 ▼6.40 | 109.67 ▼6.65 |
Posts /wp-admin/edit.php | 2,803 ▲67 | 2.69 ▲0.01 | 65.92 ▲1.54 | 94.56 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,733 ▲57 | 18.68 ▼0.18 | 360.20 ▼13.01 | 132.95 ▲26.09 |
Media Library /wp-admin/upload.php | 1,874 ▲67 | 5.55 ▲0.52 | 137.24 ▼8.28 | 119.73 ▼5.77 |
- Vimeo Videos /wp-admin/admin.php?page=ocv_vimeo | 1,240 | 2.73 | 57.00 | 84.73 |
- User Settings /wp-admin/admin.php?page=ocv_settings | 1,938 | 2.99 | 65.56 | 100.86 |
- Youtube Videos /wp-admin/admin.php?page=ocv_youtube | 1,237 | 2.60 | 58.08 | 76.10 |
- DailyMotion Videos /wp-admin/admin.php?page=ocv_dailymotion | 1,236 | 2.60 | 56.64 | 72.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ocv_dailymotion
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dailymotion-search-and-publish-videos/dsp_plugin.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ocv_dailymotion
- > Javascript (severe) in unknown
/wp-content/plugins/dailymotion-search-and-publish-videos/js/ocv_plugin.js?ver=5.8.1 201:41 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: A description for screenshot #6 is missing in dailymotion-search-and-publish-videos/assets to your readme.txt
dailymotion-search-and-publish-videos/dsp_plugin.php 92% from 13 tests
"DailyMotion Search and Publish Videos" version 3.0'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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dailymotion-search-and-publish-videos.php" instead of "dsp_plugin.php")
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
Good job! No executable or dangerous file extensions detected3,523 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 10 | 9 | 2,024 |
PHP | 7 | 57 | 46 | 730 |
SVG | 1 | 0 | 0 | 565 |
JavaScript | 1 | 29 | 15 | 204 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
3 PNG files occupy 0.28MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ocv_logo.png | 261.03KB | 74.13KB | ▼ 71.60% |
images/one_click_videos.png | 8.79KB | 5.66KB | ▼ 35.61% |
images/buy.png | 13.91KB | 7.92KB | ▼ 43.10% |