78% plagiarism

Code Review | Plagiarism

WordPress plugin Plagiarism scored78%from 54 tests.

About plugin

  • Plugin page: plagiarism
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: Nov 8, 2013
  • Number of updates: 11
  • Update frequency: every 147.9 days
  • Top authors: seoroma (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /12,584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.52MB] [CPU: ▼18.36ms] Passed 4 tests

An overview of server-side resources used by Plagiarism
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1342.43 ▼2.45
Dashboard /wp-admin3.88 ▲0.5857.96 ▼4.73
Posts /wp-admin/edit.php3.57 ▲0.2151.55 ▲0.50
Add New Post /wp-admin/post-new.php3.30 ▼2.5938.25 ▼66.74
Media Library /wp-admin/upload.php3.38 ▲0.1549.29 ▲10.69
Plagiarism /wp-admin/options-general.php?page=plagiarism-admin3.3234.98

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
plagiarism_editor_required
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Plagiarism
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12114.34 ▼0.221.55 ▼0.3239.85 ▼2.15
Dashboard /wp-admin2,285 ▲1115.64 ▼0.00103.02 ▲2.7357.86 ▲16.70
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0539.20 ▲3.8935.40 ▲0.08
Add New Post /wp-admin/post-new.php1,577 ▲4920.33 ▼2.88836.07 ▲166.9062.08 ▲5.00
Media Library /wp-admin/upload.php1,404 ▲104.16 ▼0.05124.30 ▲26.9854.22 ▲8.24
Plagiarism /wp-admin/options-general.php?page=plagiarism-admin1,1302.0129.7534.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • plagiarism_editor_required
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=plagiarism-admin
    • > Notice in wp-content/plugins/plagiarism/plagiarism.php+644
    Undefined index: plagiarism_ispost
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=plagiarism-admin
    • > Warning in wp-content/plugins/plagiarism/plagiarism.php+794
    Use of undefined constant LANG - assumed 'LANG' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=plagiarism-admin
    • > Notice in wp-content/plugins/plagiarism/plagiarism.php+780
    Undefined variable: plagiarism_use_proxy

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/plagiarism/plagiarism.php:12

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: panda, page, post, admin, plagiarism...

plagiarism/plagiarism.php 92% from 13 tests

"Plagiarism" version 1.1.0'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:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)

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
No dangerous file extensions were detected774 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP215023687
JavaScript25049
CSS18038

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity116.00
▷ Minimum class complexity116.00
▷ Maximum class complexity116.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants531.25%
▷ Class constants1168.75%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/pmiservizi_logo.png3.30KB1.92KB▼ 41.73%