89% wp-content-copy-protector

Code Review | WP Content Copy Protection & No Right Click

WordPress plugin WP Content Copy Protection & No Right Click scored89%from 54 tests.

About plugin

  • Plugin page: wp-content-copy-p...
  • Plugin version: 3.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 16, 2014
  • Latest release: Aug 16, 2023
  • Number of updates: 131
  • Update frequency: every 26.7 days
  • Top authors: wp-buy (100%)

Code review

54 tests

User reviews

957 reviews

Install metrics

100,000+ active /3,600,026 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1243.79 ▲4.07
Dashboard /wp-admin3.46 ▲0.1550.09 ▼2.44
Posts /wp-admin/edit.php3.56 ▲0.2053.69 ▲2.82
Add New Post /wp-admin/post-new.php6.15 ▲0.2689.02 ▼12.22
Media Library /wp-admin/upload.php3.40 ▲0.1734.72 ▼6.95
Settings /wp-admin/admin.php?page=wccpoptionspro3.4731.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲23813.53 ▼0.748.01 ▲5.9152.72 ▲7.87
Dashboard /wp-admin2,241 ▲535.80 ▼0.2296.96 ▼10.8638.39 ▼1.44
Posts /wp-admin/edit.php2,127 ▲382.04 ▲0.0138.93 ▲0.8535.41 ▲0.24
Add New Post /wp-admin/post-new.php1,558 ▲16623.35 ▲5.05616.91 ▼5.5349.84 ▲5.12
Media Library /wp-admin/upload.php1,423 ▲384.17 ▼0.12101.91 ▼5.8142.39 ▼2.50
Settings /wp-admin/admin.php?page=wccpoptionspro1,5982.0830.3844.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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP41381121,308
CSS31916332
PO File19296257
JavaScript12624130

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 code0.46
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/watermarking-adv-examples.png557.51KB132.35KB▼ 76.26%
images/icon-128x128.png29.66KB8.88KB▼ 70.07%
images/warning.png0.47KB0.45KB▼ 4.14%
images/click-here-arrow.png3.34KB2.10KB▼ 37.06%
images/smart-phones-protection.png105.46KB46.47KB▼ 55.94%