61% wp-copy-protect-with-color-design

Code Review | WP Content Copy Protection with Color Design

WordPress plugin WP Content Copy Protection with Color Design scored61%from 54 tests.

About plugin

  • Plugin page: wp-copy-protect-w...
  • Plugin version: 2.3.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Aug 15, 2023
  • Number of updates: 209
  • Update frequency: every 9.7 days
  • Top authors: kazukiyanamoto (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

7,000+ active /128,591 total downloads

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: ▲0.02MB] [CPU: ▼3.67ms] Passed 4 tests

Analyzing server-side resources used by WP Content Copy Protection with Color Design
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0540.27 ▼2.20
Dashboard /wp-admin3.32 ▲0.0243.26 ▼7.19
Posts /wp-admin/edit.php3.37 ▲0.0247.10 ▲2.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.47 ▼6.85
Media Library /wp-admin/upload.php3.24 ▲0.0236.13 ▲1.57
WP Protect setting /wp-admin/options-general.php?page=WP_Copy_Protection_admin_menu3.3231.81

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
protect_plugin_value_subject
theysaidso_admin_options
protect_plugin_value_click
widget_recent-comments
protect_plugin_value_color
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Content Copy Protection with Color Design
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22313.80 ▼0.636.83 ▲4.8331.73 ▼19.55
Dashboard /wp-admin2,273 ▲855.13 ▲0.2699.59 ▼20.2447.85 ▼2.17
Posts /wp-admin/edit.php2,114 ▲252.32 ▲0.2941.75 ▲5.4435.92 ▼0.34
Add New Post /wp-admin/post-new.php1,540 ▼218.66 ▲0.16620.69 ▼14.8033.78 ▼23.12
Media Library /wp-admin/upload.php1,411 ▲234.48 ▲0.3399.08 ▼2.4542.02 ▼2.78
WP Protect setting /wp-admin/options-general.php?page=WP_Copy_Protection_admin_menu1,2394.0276.8357.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, no array or string given
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=WP_Copy_Protection_admin_menu
    • > Notice in wp-content/plugins/wp-copy-protect-with-color-design/manage/admin.php+42
    Undefined index: Protect_Copy_save

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-copy-protect-with-color-design/manage/admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-copy-protect-with-color-design/wp_copy_design.php:35

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=WP_Copy_Protection_admin_menu
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=WP_Copy_Protection_admin_menu
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-copy-protect-with-color-design === )
  • Screenshots: Screenshot #1 (Options Page) image not found
  • Requires at least: Invalid plugin version format
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-copy-protect-with-color-design/wp_copy_design.php 77% from 13 tests

The entry point to "WP Content Copy Protection with Color Design" version 2.3.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-copy-protect-with-color-design.php" instead of "wp_copy_design.php")
  • Description: The description should be shorter than 140 characters (currently 267 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

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
There were no executable files found in this plugin608 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2179103566
CSS10037
JavaScript1215

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png38.52KB16.67KB▼ 56.74%
screenshot-2.png38.31KB16.65KB▼ 56.53%
screenshot-1.png26.38KB11.61KB▼ 56.00%