83% wp-true-copy-protection

Code Review | Website True Copy Protection

WordPress plugin Website True Copy Protection scored 83% from 54 tests.

About plugin

  • Plugin page: wp-true-copy-prot...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 4, 2018
  • Latest release: Jun 4, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: wppluginz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 514 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Website True Copy Protection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.49 ▼5.17
Dashboard /wp-admin3.31 ▲0.0145.30 ▼5.00
Posts /wp-admin/edit.php3.36 ▲0.0048.38 ▲1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.30 ▼2.36
Media Library /wp-admin/upload.php3.23 ▲0.0037.63 ▲6.20

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Website True Copy Protection
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.72 ▼0.861.74 ▼0.0542.90 ▼0.80
Dashboard /wp-admin2,206 ▲214.84 ▼0.0397.03 ▼22.2636.28 ▼8.50
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0539.39 ▲4.9235.31 ▲0.89
Add New Post /wp-admin/post-new.php1,529 ▲1518.55 ▲1.13591.55 ▼72.9749.49 ▼4.35
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0596.34 ▼0.5342.19 ▲2.59

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-true-copy-protection/enc-filter/enc-filter.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-true-copy-protection/enc-filter/enc-filter.php:3

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)
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

wp-true-copy-protection/enc-plugin.php 85% from 13 tests

This is the main PHP file of "Website True Copy Protection" 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: It is recommended to name the main PHP file as the plugin slug ("wp-true-copy-protection.php" instead of "enc-plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin27,664 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG10027,570
JavaScript110058
PHP231022
CSS11014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected