79% content-copy-finder

Code Review | Content Copy Finder

WordPress plugin Content Copy Finder scored79%from 54 tests.

About plugin

  • Plugin page: content-copy-finder
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 6.3.1
  • First release: May 7, 2019
  • Latest release: Apr 6, 2020
  • Number of updates: 18
  • Update frequency: every 18.6 days
  • Top authors: jokerov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,197 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.17MB] [CPU: ▼4.41ms] Passed 4 tests

This is a short check of server-side resources used by Content Copy Finder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.97 ▼7.48
Dashboard /wp-admin3.59 ▲0.2443.94 ▼17.07
Posts /wp-admin/edit.php3.64 ▲0.2850.93 ▲5.60
Add New Post /wp-admin/post-new.php6.11 ▲0.2291.02 ▲2.56
Media Library /wp-admin/upload.php3.45 ▲0.2236.20 ▲4.37
Bulk check /wp-admin/tools.php?page=ccf-bulk-check3.4532.29
Content Copy Finder /wp-admin/options-general.php?page=content-copy-finder3.4232.60

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Content Copy Finder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.29 ▼1.091.61 ▼0.6239.90 ▼12.52
Dashboard /wp-admin2,214 ▲265.90 ▲0.90111.02 ▼1.9243.00 ▼0.51
Posts /wp-admin/edit.php2,097 ▲82.15 ▲0.1739.89 ▲4.9634.31 ▼1.85
Add New Post /wp-admin/post-new.php1,541 ▲823.32 ▲0.04585.32 ▼104.8947.37 ▼10.43
Media Library /wp-admin/upload.php1,399 ▲144.18 ▼0.1496.42 ▼15.7839.85 ▼5.43
Bulk check /wp-admin/tools.php?page=ccf-bulk-check9751.8929.9229.27
Content Copy Finder /wp-admin/options-general.php?page=content-copy-finder8771.7124.9039.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/content-copy-finder/views/fields/checkbox.php
    • > /wp-content/plugins/content-copy-finder/views/fields/radio.php
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: values in wp-content/plugins/content-copy-finder/views/fields/checkbox.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/content-copy-finder/views/settings.php:2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/content-copy-finder/views/fields/checkbox.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/content-copy-finder/views/column.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/content-copy-finder/views/account.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/content-copy-finder/views/fields/text.php:1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/content-copy-finder/views/fields/radio.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/content-copy-finder/libs/jwp-dh-core/views/default_template.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/content-copy-finder/views/metabox.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/content-copy-finder/views/steps.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: plagiarism, plagiat, content

content-copy-finder/content-copy-finder.php Passed 13 tests

The entry point to "Content Copy Finder" version 1.2.2 is a PHP file that has certain tags in its header comment area
47 characters long description:
Check text for uniqueness and plagiarism search

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,895 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP312277401,413
JavaScript42616283
PO File16579180
CSS23019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.57
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes215.38%
Methods82
▷ Static methods56.10%
▷ Public methods6984.15%
▷ Protected methods1113.41%
▷ Private methods22.44%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin