84% copyscape-premium

Code Review | Copyscape Premium

WordPress plugin Copyscape Premium scored84%from 54 tests.

About plugin

  • Plugin page: copyscape-premium
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: Apr 5, 2023
  • Number of updates: 33
  • Update frequency: every 109.9 days
  • Top authors: copyscape (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /23,999 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.88ms] Passed 4 tests

A check of server-side resources used by Copyscape Premium
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1538.60 ▼5.08
Dashboard /wp-admin3.47 ▲0.1750.66 ▲3.06
Posts /wp-admin/edit.php3.59 ▲0.2456.03 ▲7.73
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.74 ▼9.24
Media Library /wp-admin/upload.php3.38 ▲0.1541.30 ▲8.52
Copyscape /wp-admin/options-general.php?page=copyscape_menu3.3838.46

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_copyscape_tbl
New WordPress options
widget_recent-comments
op_copyscape_tblversion
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Copyscape Premium: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲21014.82 ▲0.172.01 ▲0.1442.12 ▼3.02
Dashboard /wp-admin2,365 ▲1746.42 ▲1.57134.08 ▲30.9741.27 ▼4.78
Posts /wp-admin/edit.php2,265 ▲1733.35 ▲1.3555.25 ▲13.1633.27 ▼2.46
Add New Post /wp-admin/post-new.php1,544 ▲623.36 ▲0.40653.99 ▼6.8537.38 ▼19.68
Media Library /wp-admin/upload.php1,398 ▲134.12 ▼0.1081.33 ▼17.0342.14 ▼0.69
Copyscape /wp-admin/options-general.php?page=copyscape_menu1,0013.0042.8953.20

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • op_copyscape_tblversion
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/copyscape-premium/copyscape.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: copyscape, plagiarism, duplicate content, unique, original

copyscape-premium/copyscape.php 85% from 13 tests

"Copyscape Premium" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 583 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("copyscape-premium.php" instead of "copyscape.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin738 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP113348576
JavaScript1529162

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
copyscapeicon.png1.24KB1.32KB0.00%