83% copycontentdetector

Code Review | CopyContentDetector

WordPress plugin CopyContentDetector scored83%from 54 tests.

About plugin

  • Plugin page: copycontentdetector
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2017
  • Latest release: Jan 31, 2023
  • Number of updates: 17
  • Update frequency: every 111.6 days
  • Top authors: copycontentdetector (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.39ms] Passed 4 tests

Analyzing server-side resources used by CopyContentDetector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2146.54 ▲3.77
Dashboard /wp-admin3.52 ▲0.1752.63 ▼10.96
Posts /wp-admin/edit.php3.63 ▲0.2750.60 ▲2.57
Add New Post /wp-admin/post-new.php6.12 ▲0.23118.90 ▲14.08
Media Library /wp-admin/upload.php3.44 ▲0.2139.09 ▲3.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CopyContentDetector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.82 ▼0.588.42 ▲6.8841.99 ▲2.09
Dashboard /wp-admin2,214 ▲335.63 ▼0.10108.15 ▲1.9751.21 ▲4.94
Posts /wp-admin/edit.php2,135 ▲352.07 ▲0.1142.63 ▼1.0649.89 ▲13.21
Add New Post /wp-admin/post-new.php1,543 ▲1723.47 ▼0.15686.17 ▼31.8367.73 ▲14.92
Media Library /wp-admin/upload.php1,422 ▲254.32 ▲0.10117.88 ▲14.1853.67 ▲10.31

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/copycontentdetector/admin/partials/ccd-copycontentdetector-admin-display.php
    • > /wp-content/plugins/copycontentdetector/public/partials/ccd-copycontentdetector-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There were no tags found
You can take inspiration from this readme.txt

copycontentdetector/ccd-copycontentdetector.php 77% from 13 tests

"CopyContentDetector" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("copycontentdetector.php" instead of "ccd-copycontentdetector.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected1,222 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12330683874
JavaScript275104314
CSS211834

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.14
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4280.77%
▷ Protected methods00.00%
▷ Private methods1019.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin