78% plagibot-plagiarism-checker

Code Review | Plagiarism Checker - Plagibot

WordPress plugin Plagiarism Checker - Plagibot scored78%from 54 tests.

About plugin

  • Plugin page: plagibot-plagiari...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Aug 11, 2023
  • Number of updates: 4
  • Update frequency: every 72.0 days
  • Top authors: plagibot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /6,328 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 gracefully, with no errors

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

This is a short check of server-side resources used by Plagiarism Checker - Plagibot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.07 ▼0.05
Dashboard /wp-admin3.37 ▲0.0744.09 ▼6.51
Posts /wp-admin/edit.php3.48 ▲0.1346.23 ▲3.41
Add New Post /wp-admin/post-new.php5.95 ▲0.0789.63 ▲1.04
Media Library /wp-admin/upload.php3.29 ▲0.0736.21 ▲5.55
Plagibot /wp-admin/options-general.php?page=plagibot-settings3.2629.66

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
plagibot_options
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Plagiarism Checker - Plagibot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.36 ▲0.001.60 ▼0.4041.60 ▼2.05
Dashboard /wp-admin2,218 ▲575.63 ▲0.0489.84 ▼10.7043.38 ▲4.69
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.1840.35 ▲2.3237.61 ▲0.77
Add New Post /wp-admin/post-new.php1,546 ▲2023.07 ▼0.70673.44 ▼18.8656.88 ▼4.92
Media Library /wp-admin/upload.php1,423 ▲234.24 ▲0.0197.38 ▼15.7342.87 ▼4.60
Plagibot /wp-admin/options-general.php?page=plagibot-settings8461.9925.4328.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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • plagibot_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/plagibot-plagiarism-checker/include/pages/plagibot_settings.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=plagibot-settings
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=plagibot-settings 180:26 Uncaught TypeError: jQuery(...).chosen is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: plagiarism detector, plagibot, plagiarism checker, duplicate checker

plagibot-plagiarism-checker/plagibot.php 77% from 13 tests

This is the main PHP file of "Plagiarism Checker - Plagibot" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.8" instead of "5.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("plagibot-plagiarism-checker.php" instead of "plagibot.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin1,150 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS62826691
PHP621530391
JavaScript5131668

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity7.00
▷ Maximum class complexity27.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/upload-icon.png2.20KB1.52KB▼ 31.01%
assets/img/plagibot-icon.png10.48KB5.80KB▼ 44.68%
assets/css/chosen-sprite.png0.53KB0.88KB0.00%
assets/img/download-1.png2.20KB0.75KB▼ 66.13%
assets/css/chosen-sprite@2x.png0.72KB0.83KB0.00%