90% copyproof-website

Code Review | CopyProof Website

WordPress plugin CopyProof Website scored 90% from 54 tests.

About plugin

  • Plugin page: copyproof-website
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: May 8, 2023
  • Number of updates: 115
  • Update frequency: every 20.3 days
  • Top authors: tawhidurrahmandear (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active / 8,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.92ms] Passed 4 tests

An overview of server-side resources used by CopyProof Website
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.99 ▼0.27
Dashboard /wp-admin3.31 ▲0.0043.31 ▲0.18
Posts /wp-admin/edit.php3.36 ▲0.0044.88 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.65 ▼22.07
Media Library /wp-admin/upload.php3.23 ▲0.0033.28 ▲1.57

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
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CopyProof Website
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.28 ▼1.105.25 ▲3.4942.92 ▲2.09
Dashboard /wp-admin2,203 ▲155.79 ▲0.9594.88 ▼23.4738.61 ▼4.67
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0333.41 ▼7.8233.88 ▼2.73
Add New Post /wp-admin/post-new.php1,533 ▲923.38 ▲0.23651.50 ▲26.4357.74 ▲7.81
Media Library /wp-admin/upload.php1,388 ▲64.16 ▼0.0893.16 ▼2.5644.51 ▲2.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: protect content, copy protect, prevent copy, content protection, copy protection

copyproof-website/copyproof-website.php Passed 13 tests

The main PHP file in "CopyProof Website" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
Only PlugIn activation is enough! No need to use any short-code or to edit settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171113

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.50
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
PNG images were not found in this plugin