Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.01MB] [CPU: ▼39.59ms] Passed 4 tests
Server-side resources used by CopySafe Video Protection
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▼0.49 | 18.31 ▼24.28 |
Dashboard /wp-admin | 3.00 ▼0.30 | 20.24 ▼27.70 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 17.81 ▼26.95 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 16.97 ▼79.41 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 15.98 ▼18.35 |
List Files /wp-admin/admin.php?page=wpcsv_list | 3.01 | 18.54 |
Settings /wp-admin/admin.php?page=wpcsv_settings | 3.01 | 19.34 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
wpcsv_settings |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for CopySafe Video Protection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.77 ▼0.82 | 1.74 ▼0.11 | 43.37 ▼0.29 |
Dashboard /wp-admin | 2,239 ▲50 | 5.36 ▼0.53 | 101.80 ▼19.41 | 37.83 ▼9.05 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.35 ▲0.31 | 34.59 ▼2.60 | 31.52 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,702 ▲174 | 22.35 ▲4.06 | 580.87 ▼60.89 | 27.28 ▼25.09 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.34 ▲0.14 | 89.39 ▼8.45 | 41.69 ▼1.54 |
List Files /wp-admin/admin.php?page=wpcsv_list | 890 | 1.98 | 25.68 | 29.57 |
Settings /wp-admin/admin.php?page=wpcsv_settings | 1,336 | 2.13 | 28.10 | 31.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+805
Undefined index: page
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcsv_settings
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+809
Undefined index: csvfilename
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcsv_settings
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+813
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcsv_settings
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+817
Undefined index: cspdel_nonce
- > GET request to /wp-admin/admin.php?page=wpcsv_settings
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+258
Undefined variable: lnguageOptionStr
- > GET request to /wp-admin/admin.php?page=wpcsv_settings
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+320
Undefined variable: minimum_version
- > GET request to /wp-admin/admin.php?page=wpcsv_settings
- > Notice in wp-content/plugins/wp-copysafe-video/wp-copysafe-video.php+361
Undefined variable: allowremote
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-copysafe-video/popup_load.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WPCSV_PLUGIN_PATH - assumed 'WPCSV_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-copysafe-video/popup_load.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wp-copysafe-video/login-status.php:5
- > PHP Warning
Use of undefined constant WPCSV_PLUGIN_URL - assumed 'WPCSV_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-copysafe-video/popup_load.php on line 53
- > PHP Warning
include(): Failed opening 'WPCSV_PLUGIN_PATHmedia-upload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-copysafe-video/popup_load.php on line 40
- > PHP Warning
include(WPCSV_PLUGIN_PATHmedia-upload.php): failed to open stream: No such file or directory in wp-content/plugins/wp-copysafe-video/popup_load.php on line 40
- > PHP Warning
Use of undefined constant WPCSV_PLUGIN_URL - assumed 'WPCSV_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-copysafe-video/popup_load.php on line 46
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 (CopySafe Videos can be added at the last position of the cursor by clicking the [Video] button.), #2 (Once the document is selected, you can then nominate settings to apply to this particular page or post.), #3 (The above default settings are applied to all CopySafe Video pages and posts.), #4 (The document file manager will list all uploaded document class files.)
wp-copysafe-video/wp-copysafe-video.php Passed 13 tests
The main PHP script in "CopySafe Video Protection" version 2.7 is automatically included on every request by WordPress
138 characters long description:
This Wordpress plugin enables sites using CopySafe Video to easily add copy protected videos to web pages for display in the ArtisBrowser.
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
There were no executable files found in this plugin3,533 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 401 | 54 | 1,549 |
PHP | 5 | 196 | 154 | 1,311 |
JavaScript | 4 | 86 | 100 | 483 |
HTML | 3 | 23 | 0 | 190 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
10 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/settings.png | 1.83KB | 1.69KB | ▼ 7.68% |
images/search.png | 2.72KB | 1.50KB | ▼ 44.98% |
images/help-24-30.png | 1.52KB | 1.19KB | ▼ 21.77% |
images/add_file.png | 1.02KB | 1.31KB | 0.00% |
images/artistscope-logo48.png | 3.10KB | 1.78KB | ▼ 42.54% |