63% wp-anti-copy

Code Review | WP Anti Copy - Protect your precious content from copying

WordPress plugin WP Anti Copy - Protect your precious content from copying scored63%from 54 tests.

About plugin

  • Plugin page: wp-anti-copy
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2020
  • Latest release: Feb 8, 2020
  • Number of updates: 9
  • Update frequency: every 1.2 days
  • Top authors: teknikforce (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /906 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.10ms] Passed 4 tests

A check of server-side resources used by WP Anti Copy - Protect your precious content from copying
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.03 ▼0.17
Dashboard /wp-admin3.39 ▲0.0955.15 ▲5.97
Posts /wp-admin/edit.php3.50 ▲0.1550.09 ▲2.46
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.44 ▼3.46
Media Library /wp-admin/upload.php3.31 ▲0.0838.18 ▲1.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 66 new files
Database: 1 new table, 7 new options
New tables
wp_anticopy
New WordPress options
wpanticpy_prevent_indexes
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Anti Copy - Protect your precious content from copying
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15613.60 ▼0.705.64 ▲3.1742.07 ▼0.92
Dashboard /wp-admin2,225 ▲345.85 ▼0.04110.48 ▲6.2844.79 ▲2.10
Posts /wp-admin/edit.php2,111 ▲222.01 ▲0.0136.74 ▲1.5735.76 ▼0.70
Add New Post /wp-admin/post-new.php1,544 ▲2523.29 ▲0.25681.30 ▲5.6473.50 ▲19.01
Media Library /wp-admin/upload.php1,407 ▲194.23 ▲0.01101.88 ▼1.9043.65 ▼4.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'anticopy_remove_database' not found or invalid function name
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_anticopy
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • wpanticpy_prevent_indexes
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-anti-copy/copy-sequence/user_not_verified_bonus.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-anti-copy/copy-sequence/user_not_verified.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-anti-copy/assets to your readme.txt
The official readme.txt might help

wp-anti-copy/index.php 92% from 13 tests

This is the main PHP file of "WP Anti Copy - Protect your precious content from copying" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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-anti-copy.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin22,567 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,4675213,546
JavaScript72,0281,7177,970
PHP7114131,051

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.00
▷ Minimum class complexity13.00
▷ Maximum class complexity23.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions857.14%
▷ Anonymous functions642.86%
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
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) copy-sequence/asset/img/blue-icon-security.png13.74KB0.00KB▼ 100.00%
(invalid) assets/img/tekniklogo.png2.22KB0.00KB▼ 100.00%
(invalid) tekniklogo.png2.22KB0.00KB▼ 100.00%