73% digiproveblog

Code Review | Copyright Proof

WordPress plugin Copyright Proof scored 73% from 54 tests.

About plugin

  • Plugin page: digiproveblog
  • Plugin version: 4.16
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.8.3
  • WordPress version: 5.9.2
  • First release: Nov 3, 2009
  • Latest release: Jan 14, 2022
  • Number of updates: 208
  • Update frequency: every 21.6 days
  • Top authors: DigiproveDevelopment (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

3,000+ active / 171,864 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.31MB] [CPU: ▼278.66ms] Passed 4 tests

Analyzing server-side resources used by Copyright Proof
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.89 ▲1.3768.41 ▲15.38
Dashboard /wp-admin4.71 ▲1.3046.43 ▲13.19
Posts /wp-admin/edit.php4.94 ▲1.3057.66 ▲21.48
Add New Post /wp-admin/post-new.php8.24 ▲1.27113.11 ▼1,153.57
Media Library /wp-admin/upload.php4.66 ▲1.3636.39 ▲10.35
Copyright Proof /wp-admin/options-general.php?page=copyright-proof-settings4.6742.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 37 new files
Database: 4 new tables, 49 new options
New tables
wp_dprv_licenses
wp_dprv_log
wp_dprv_posts
wp_dprv_post_content_files
New WordPress options
dprv_footer
dprv_display_name
dprv_featured_images
dprv_obscure_url
dprv_right_click_message
dprv_last_date_count
dprv_html_tags
dprv_auto_posts
dprv_email_address
dprv_content_type
...

Browser metrics Passed 4 tests

A check of browser resources used by Copyright Proof
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲7415.61 ▼0.146.01 ▲0.332.08 ▼0.30
Dashboard /wp-admin2,917 ▲566.03 ▼0.16120.95 ▼20.87155.66 ▼11.44
Posts /wp-admin/edit.php2,728 ▲343.24 ▲0.0167.77 ▲2.15155.42 ▲12.17
Add New Post /wp-admin/post-new.php1,690 ▼019.18 ▼1.81382.83 ▼83.78150.42 ▼6.05
Media Library /wp-admin/upload.php1,724 ▲265.49 ▼0.02143.39 ▲0.86193.57 ▲1.79
Copyright Proof /wp-admin/options-general.php?page=copyright-proof-settings3,9673.8983.46151.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_dprv_post_content_files
    • wp_dprv_log
    • wp_dprv_posts
    • wp_dprv_licenses
  • Zombie WordPress options detected upon uninstall: 49 options
    • dprv_footer
    • dprv_user_id
    • dprv_content_type
    • dprv_c_notice
    • dprv_hover_color
    • dprv_pending_levels
    • dprv_linkback
    • dprv_outside_media
    • dprv_back_digiproved_count
    • dprv_use_ssl
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'DPLog' not found in wp-content/plugins/digiproveblog/copyright_proof_live.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digiproveblog/copyright_proof_admin.php:3309
    • > PHP Fatal error
      Uncaught Error: Class 'DPLog' not found in wp-content/plugins/digiproveblog/copyright_proof_admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digiproveblog/copyright_proof_edit.php:30

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (A Digiprove notice), #2 (Settings (Basic)), #3 (Settings (Advanced)), #4 (Settings (Content)), #5 (Settings (License)), #6 (Settings (Copy Protect)), #7 (Settings (Bulk Digiproving))
Please take inspiration from this readme.txt

digiproveblog/CopyrightProof.php 85% from 13 tests

The primary PHP file in "Copyright Proof" version 4.16 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("digiproveblog.php" instead of "CopyrightProof.php")

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 plugin13,185 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP97441,1878,858
JavaScript63102283,034
PO File13835071,212
HTML12078
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity50.00
▷ Minimum class complexity9.00
▷ Maximum class complexity172.00
Average method complexity11.21
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1979.17%
▷ Public methods1562.50%
▷ Protected methods00.00%
▷ Private methods937.50%
Functions93
▷ Named functions93100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
7 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
digiprove_logo_112x28.png3.27KB2.12KB▼ 35.00%
Digiprove_logo_861x219_bgTrans.png36.18KB14.66KB▼ 59.48%
Refresh-16.png1.04KB0.74KB▼ 28.61%
hs.png2.62KB7.54KB0.00%
hv.png2.80KB7.32KB0.00%