89% uncopy

Code Review | UnCopy

WordPress plugin UnCopy scored89%from 54 tests.

About plugin

  • Plugin page: uncopy
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8
  • WordPress version: 6.3.1
  • First release: Jul 31, 2021
  • Latest release: Jul 31, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: uncopy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /757 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.47ms] Passed 4 tests

Analyzing server-side resources used by UnCopy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.95 ▲3.06
Dashboard /wp-admin3.36 ▲0.0548.29 ▲0.73
Posts /wp-admin/edit.php3.41 ▲0.0543.94 ▼3.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.19 ▼22.59
Media Library /wp-admin/upload.php3.28 ▲0.0538.38 ▲3.47

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 18 new options
New WordPress options
uncopy_settings_javascript_image_text_dragging
uncopy_settings_javascript_right_click
uncopy_settings_general_html
db_upgraded
widget_recent-posts
theysaidso_admin_options
uncopy_settings_general_js
uncopy_settings
widget_recent-comments
uncopy_settings_javascript_developer_tools_msg
...

Browser metrics Passed 4 tests

An overview of browser requirements for UnCopy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲4613.27 ▼1.484.73 ▲2.9443.08 ▲0.59
Dashboard /wp-admin2,211 ▲205.89 ▲0.95112.26 ▲9.2774.53 ▲29.63
Posts /wp-admin/edit.php2,103 ▲112.02 ▼0.0333.08 ▼10.5333.03 ▼4.96
Add New Post /wp-admin/post-new.php1,682 ▲16322.39 ▼0.90698.23 ▲16.4043.04 ▼14.52
Media Library /wp-admin/upload.php1,396 ▲114.20 ▼0.0898.72 ▼3.7374.98 ▲28.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 18 options
    • uncopy_settings_general_css
    • uncopy_settings_general_js
    • uncopy_settings_javascript_text_selection
    • widget_recent-comments
    • uncopy_settings_general_html
    • theysaidso_admin_options
    • widget_recent-posts
    • uncopy_settings_javascript_image_text_dragging
    • uncopy_settings_html_disabled_js_msg
    • uncopy_settings_javascript_right_click
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

uncopy/uncopy.php 92% from 13 tests

The primary PHP file in "UnCopy" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

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
Good job! No executable or dangerous file extensions detected3,752 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS3407192,935
PHP1812638751
JavaScript25436
SVG80030

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 1.21MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png5.41KB5.54KB0.00%
assets/screenshot-3.png199.51KB57.24KB▼ 71.31%
assets/screenshot-7.png83.20KB20.73KB▼ 75.09%
assets/screenshot-6.png173.22KB48.27KB▼ 72.14%
frontend/images/logo-lg.png12.13KB12.24KB0.00%