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 gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.70ms] Passed 4 tests
An overview of server-side resources used by WP Content Copy Protection & No Right Click
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 43.79 ▲4.07 |
Dashboard /wp-admin | 3.46 ▲0.15 | 50.09 ▼2.44 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 53.69 ▲2.82 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 89.02 ▼12.22 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.72 ▼6.95 |
Settings /wp-admin/admin.php?page=wccpoptionspro | 3.47 | 31.57 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Content Copy Protection & No Right Click
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲238 | 13.53 ▼0.74 | 8.01 ▲5.91 | 52.72 ▲7.87 |
Dashboard /wp-admin | 2,241 ▲53 | 5.80 ▼0.22 | 96.96 ▼10.86 | 38.39 ▼1.44 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.04 ▲0.01 | 38.93 ▲0.85 | 35.41 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,558 ▲166 | 23.35 ▲5.05 | 616.91 ▼5.53 | 49.84 ▲5.12 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.17 ▼0.12 | 101.91 ▼5.81 | 42.39 ▼2.50 |
Settings /wp-admin/admin.php?page=wccpoptionspro | 1,598 | 2.08 | 30.38 | 44.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-content-copy-protector/preventer-index.php 85% from 13 tests
The principal PHP file in "WP Content Copy Protection & No Right Click" v. 3.5.7 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-content-copy-protector.php" instead of "preventer-index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,027 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 138 | 112 | 1,308 |
CSS | 3 | 19 | 16 | 332 |
PO File | 1 | 92 | 96 | 257 |
JavaScript | 1 | 26 | 24 | 130 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 3 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 50.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 1.25MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/watermarking-adv-examples.png | 557.51KB | 132.35KB | ▼ 76.26% |
images/icon-128x128.png | 29.66KB | 8.88KB | ▼ 70.07% |
images/warning.png | 0.47KB | 0.45KB | ▼ 4.14% |
images/click-here-arrow.png | 3.34KB | 2.10KB | ▼ 37.06% |
images/smart-phones-protection.png | 105.46KB | 46.47KB | ▼ 55.94% |