10% plagiary-search

Code Review | Plagiary Search

WordPress plugin Plagiary Search scored10%from 54 tests.

About plugin

  • Plugin page: plagiary-search
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Jan 7, 2013
  • Latest release: Apr 18, 2016
  • Number of updates: 33
  • Update frequency: every 49.1 days
  • Top authors: sedLex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,940 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/plagiary-search/core.class.php+1698
    Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.35ms] Passed 4 tests

Analyzing server-side resources used by Plagiary Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.12 ▼7.61
Dashboard /wp-admin3.31 ▼0.0444.49 ▼12.93
Posts /wp-admin/edit.php3.36 ▲0.0042.65 ▼6.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.61 ▼14.68
Media Library /wp-admin/upload.php3.23 ▲0.0035.24 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 164 new files
Database: 1 new table, 6 new options
New tables
wp_pluginSL_plagiary_search
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Plagiary Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.17 ▼0.111.81 ▲0.1541.18 ▼5.64
Dashboard /wp-admin2,198 ▲245.62 ▲0.0482.98 ▼2.3738.04 ▼2.76
Posts /wp-admin/edit.php2,100 ▼02.13 ▲0.1333.47 ▼6.5935.10 ▼4.44
Add New Post /wp-admin/post-new.php1,536 ▲1022.87 ▼0.63652.51 ▲7.7569.13 ▲15.82
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.0193.84 ▼2.6040.43 ▼7.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/plagiary-search/core.class.php+1698
    Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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 fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/plagiary-search/plagiary-search.php
    • > /wp-content/plugins/plagiary-search/core.class.php
    • > /wp-content/plugins/plagiary-search/core.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/plagiary-search/core/templates/my-plugin.php on line 18
    • > PHP Warning
      require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/plagiary-search/core/templates/my-plugin.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Examples of results with proximity images), #2 (Process screen)
You can take inspiration from this readme.txt

plagiary-search/plagiary-search.php 92% from 13 tests

The principal PHP file in "Plagiary Search" v. 1.2.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 200 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin19,177 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP191,4602,1879,042
PO File333,90708,530
JavaScript62382511,031
CSS108513459
Markdown120084
JSON10029
INI2002

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 119)
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity71.21
▷ Minimum class complexity1.00
▷ Maximum class complexity444.00
Average method complexity7.60
▷ Minimum method complexity1.00
▷ Maximum method complexity119.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods202
▷ Static methods3517.33%
▷ Public methods19998.51%
▷ Protected methods31.49%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
38 PNG files occupy 0.52MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/img/valid.png4.34KB1.51KB▼ 65.32%
core/img/tab_trad.png0.90KB1.08KB0.00%
core/img/warning.png4.46KB1.51KB▼ 66.10%
core/img/error.png4.24KB1.48KB▼ 65.18%
img/banner-772x250.png62.20KB23.48KB▼ 62.26%