10% check-plagiarism

Code Review | Check Plagiarism

WordPress plugin Check Plagiarism scored10%from 54 tests.

About plugin

  • Plugin page: check-plagiarism
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Nov 1, 2022
  • Number of updates: 57
  • Update frequency: every 37.8 days
  • Top authors: plagiarismchecker (89.47%)mianahmad (12.28%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /3,806 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.47ms] Passed 4 tests

Analyzing server-side resources used by Check Plagiarism
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.98 ▼5.22
Dashboard /wp-admin3.37 ▲0.0746.67 ▼5.55
Posts /wp-admin/edit.php3.42 ▲0.0750.42 ▲0.84
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.19 ▼7.96
Media Library /wp-admin/upload.php3.29 ▲0.0738.35 ▲2.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables
wp_plugin_users
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
jal_db_version
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Check Plagiarism
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.20 ▼1.201.73 ▼0.1239.32 ▼5.01
Dashboard /wp-admin2,245 ▲564.95 ▼0.0296.33 ▼24.2667.41 ▲18.82
Posts /wp-admin/edit.php2,169 ▲802.23 ▲0.1844.81 ▲7.0935.89 ▲1.69
Add New Post /wp-admin/post-new.php1,557 ▲2018.53 ▼4.91660.02 ▼33.0657.29 ▼4.36
Media Library /wp-admin/upload.php1,424 ▲364.25 ▲0.0398.19 ▼16.6679.32 ▲31.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • jal_db_version
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/check-plagiarism/index.php:25

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 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt might help

check-plagiarism/index.php 85% from 13 tests

The main PHP file in "Check Plagiarism" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("check-plagiarism.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected701 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP110419659
HTML21022
JavaScript21119
CSS1021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png53.39KB26.48KB▼ 50.40%
assets/screenshot-1.png25.09KB12.87KB▼ 48.69%
assets/screenshot-2.png42.60KB21.43KB▼ 49.70%
assets/screenshot-4.png73.12KB31.16KB▼ 57.38%
assets/banner-772x250.png127.79KB39.87KB▼ 68.80%