10% free-online-plagiarism-checker

Code Review | Free Online Plagiarism Checker

WordPress plugin Free Online Plagiarism Checker scored10%from 54 tests.

About plugin

  • Plugin page: free-online-plagi...
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2015
  • Latest release: Sep 24, 2022
  • Number of updates: 51
  • Update frequency: every 48.4 days
  • Top authors: mianahmad (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /12,923 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PCPPS_WP_AhmadSeo::pcpps_wpa_install() should not be called statically

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.82ms] Passed 4 tests

Server-side resources used by Free Online Plagiarism Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.34 ▼1.31
Dashboard /wp-admin3.36 ▲0.0646.40 ▼3.59
Posts /wp-admin/edit.php3.41 ▲0.0646.93 ▼1.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.50 ▼17.23
Media Library /wp-admin/upload.php3.28 ▲0.0638.29 ▲2.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 9 new options
New WordPress options
prepostseo_version
can_compress_scripts
prepostseo_acckey
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
prepostseo_action_site
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Free Online Plagiarism Checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.63 ▼0.751.85 ▲0.0235.90 ▼9.90
Dashboard /wp-admin2,272 ▲844.97 ▲0.11101.96 ▼15.4592.20 ▲44.04
Posts /wp-admin/edit.php2,153 ▲642.06 ▲0.0642.01 ▲6.0151.93 ▲15.51
Add New Post /wp-admin/post-new.php6,378 ▲4,83621.94 ▲3.82931.37 ▲289.5245.06 ▼9.66
Media Library /wp-admin/upload.php1,452 ▲614.21 ▲0.0099.25 ▲1.7787.86 ▲44.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • prepostseo_action_site
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • prepostseo_acckey
    • widget_recent-posts
    • prepostseo_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/free-online-plagiarism-checker/settingPage.php
    • > /wp-content/plugins/free-online-plagiarism-checker/lib/checkPlag.php
    • > /wp-content/plugins/free-online-plagiarism-checker/lib/checkstatus.php
    • > /wp-content/plugins/free-online-plagiarism-checker/actions.php
    • > /wp-content/plugins/free-online-plagiarism-checker/index.php
    • > /wp-content/plugins/free-online-plagiarism-checker/lib/simple_html_dom.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/free-online-plagiarism-checker/free-online-plagiarism-checker.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
6 plugin tags: seo, plagiarism checker, post, plagiarism, admin...

free-online-plagiarism-checker/free-online-plagiarism-checker.php 92% from 13 tests

The main PHP file in "Free Online Plagiarism Checker" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,797 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS7150373,137
LESS1328341,510
PHP73182391,484
JavaScript514241953
SVG200663
HTML118050

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity96.00
▷ Minimum class complexity2.00
▷ Maximum class complexity164.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods81
▷ Static methods00.00%
▷ Public methods6580.25%
▷ Protected methods1619.75%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
20 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/warning_b.png1.15KB1.22KB0.00%
imgs/icon-2.png0.83KB0.84KB0.00%
imgs/bullet_arrow_up.png0.26KB0.17KB▼ 33.46%
imgs/logo.png0.27KB0.27KB0.00%
imgs/Danger.png0.88KB0.84KB▼ 3.79%