90% no-copy-block-text-selection

Code Review | No copy allowed, disable copy - Nork Tecnologia

WordPress plugin No copy allowed, disable copy - Nork Tecnologia scored90%from 54 tests.

About plugin

  • Plugin page: no-copy-block-tex...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Jul 14, 2022
  • Number of updates: 15
  • Update frequency: every 93.3 days
  • Top authors: cjperes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.53ms] Passed 4 tests

Server-side resources used by No copy allowed, disable copy - Nork Tecnologia
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.02 ▼6.88
Dashboard /wp-admin3.33 ▲0.0252.73 ▲2.30
Posts /wp-admin/edit.php3.38 ▲0.0254.27 ▲4.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.89 ▼17.55
Media Library /wp-admin/upload.php3.26 ▲0.0239.39 ▲0.02
Block copy /wp-admin/options-general.php?page=block-copy3.2229.67

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for No copy allowed, disable copy - Nork Tecnologia
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.35 ▼0.202.31 ▲0.4745.39 ▲2.70
Dashboard /wp-admin2,202 ▲255.62 ▼0.2286.59 ▼8.6440.45 ▼3.34
Posts /wp-admin/edit.php2,101 ▲41.95 ▼0.0339.38 ▲2.4035.01 ▼4.01
Add New Post /wp-admin/post-new.php1,529 ▲123.59 ▲0.71696.89 ▲37.0953.38 ▼0.59
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.01104.58 ▼4.9347.13 ▲2.98
Block copy /wp-admin/options-general.php?page=block-copy8102.0225.8536.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt Passed 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
10 plugin tags: block ctrlv, disable print, disable copy, block ctrlc, block copy...

no-copy-block-text-selection/no-copy-block-selection.php 92% from 13 tests

The main PHP file in "No copy allowed, disable copy - Nork Tecnologia" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("no-copy-block-text-selection.php" instead of "no-copy-block-selection.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23129153

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin