83% website-copy-protection

Code Review | Website Copy Protection

WordPress plugin Website Copy Protection scored83%from 54 tests.

About plugin

  • Plugin page: website-copy-prot...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5+
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: Jul 27, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: iamanupammaity (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active /3,997 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.71ms] Passed 4 tests

This is a short check of server-side resources used by Website Copy Protection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.72 ▲3.04
Dashboard /wp-admin3.31 ▼0.0442.44 ▼18.46
Posts /wp-admin/edit.php3.36 ▲0.0046.15 ▲2.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.68 ▼9.43
Media Library /wp-admin/upload.php3.23 ▲0.0036.48 ▲3.14

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Website Copy Protection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.20 ▼1.201.94 ▼0.1043.98 ▼1.26
Dashboard /wp-admin2,203 ▲155.80 ▼0.1198.71 ▼19.3838.28 ▼7.75
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0238.30 ▼0.2734.32 ▼1.50
Add New Post /wp-admin/post-new.php1,514 ▼017.82 ▲0.17599.25 ▼75.4053.01 ▲0.84
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0199.04 ▲0.3041.87 ▼2.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-copy-protection/website-copy-protection.php:9

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 90% from 29 tests

readme.txt 94% 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:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

website-copy-protection/website-copy-protection.php 85% from 13 tests

"Website Copy Protection" version 1...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
  • Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10735

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected