78% plagiarism-checker-by-sst

Code Review | Plagiarism Checker By SST

WordPress plugin Plagiarism Checker By SST scored78%from 54 tests.

About plugin

  • Plugin page: plagiarism-checke...
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Apr 7, 2023
  • Number of updates: 145
  • Update frequency: every 18.1 days
  • Top authors: smallseotools (79.31%)mianahmad (21.38%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /74,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.06MB] [CPU: ▼6.37ms] Passed 4 tests

This is a short check of server-side resources used by Plagiarism Checker By SST
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.77 ▼6.07
Dashboard /wp-admin3.37 ▲0.0757.66 ▲7.46
Posts /wp-admin/edit.php3.42 ▲0.0750.12 ▲0.57
Add New Post /wp-admin/post-new.php5.50 ▼0.3973.54 ▼21.63
Media Library /wp-admin/upload.php3.29 ▲0.0640.90 ▲1.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
smallseotools_acckey
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Plagiarism Checker By SST
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.36 ▲0.001.92 ▲0.0935.32 ▼10.37
Dashboard /wp-admin2,238 ▲585.60 ▲0.0484.36 ▼9.90101.41 ▲60.00
Posts /wp-admin/edit.php2,162 ▲622.07 ▲0.0837.70 ▲0.1851.73 ▲15.14
Add New Post /wp-admin/post-new.php6,568 ▲5,04228.37 ▲4.85969.25 ▲270.9570.93 ▲11.37
Media Library /wp-admin/upload.php1,455 ▲554.27 ▲0.06102.22 ▼7.7795.75 ▲48.51

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/plagiarism-checker-by-sst/settingPage.php
    • > /wp-content/plugins/plagiarism-checker-by-sst/lib/checkstatus.php
    • > /wp-content/plugins/plagiarism-checker-by-sst/actions.php
    • > /wp-content/plugins/plagiarism-checker-by-sst/lib/checkPlag.php
    • > /wp-content/plugins/plagiarism-checker-by-sst/lib/sst_b_s.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plagiarism-checker-by-sst/plagiarism-checker-by-sst.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: check plagiarism, plagiarism, plagiarism checker

plagiarism-checker-by-sst/plagiarism-checker-by-sst.php 92% from 13 tests

The main PHP file in "Plagiarism Checker By SST" ver. 2.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • 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
Everything looks great! No dangerous files found in this plugin3,179 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript784481,450
CSS5154251,154
PHP61732502
HTML118050
SVG10023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods466.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/sst-file.png0.48KB0.24KB▼ 50.61%
imgs/bullet_arrow_down.png0.28KB0.17KB▼ 36.75%
imgs/tick.png0.44KB0.40KB▼ 9.31%
imgs/bullet_arrow_up.png0.26KB0.17KB▼ 33.46%
imgs/cancel.png0.25KB0.19KB▼ 24.42%