78% plagium

Code Review | Plagium

WordPress plugin Plagium scored78%from 54 tests.

About plugin

  • Plugin page: plagium
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Dec 11, 2015
  • Number of updates: 15
  • Update frequency: every 12.8 days
  • Top authors: gherisson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,019 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.06MB] [CPU: ▼2.88ms] 75% from 4 tests

Analyzing server-side resources used by Plagium
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 574.88ms on /wp-admin/options-general.php?page=plagium-admin)
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.10 ▲7.64
Dashboard /wp-admin3.50 ▲0.19585.39 ▲533.76
Posts /wp-admin/edit.php3.41 ▲0.0651.04 ▼5.63
Add New Post /wp-admin/post-new.php5.50 ▼0.3874.68 ▼18.81
Media Library /wp-admin/upload.php3.28 ▲0.0541.61 ▲5.29
Plagium /wp-admin/options-general.php?page=plagium-admin3.37574.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Plagium
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.27 ▼1.091.62 ▼0.5143.18 ▼1.04
Dashboard /wp-admin2,243 ▲584.88 ▼0.08101.19 ▼23.7341.50 ▼14.86
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0237.65 ▼6.2132.48 ▼2.65
Add New Post /wp-admin/post-new.php6,249 ▲4,71426.29 ▲3.141,047.97 ▲398.9758.46 ▼7.90
Media Library /wp-admin/upload.php1,392 ▲74.21 ▲0.0099.79 ▼11.4749.51 ▲1.23
Plagium /wp-admin/options-general.php?page=plagium-admin9472.1726.2630.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/plagium/plagium.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=plagium-admin
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=plagium-admin - Access to XMLHttpRequest at 'http://www.plagium.com/cfc/oplagiumapi.cfc' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=plagium-admin
    • > Network (severe)
    http://www.plagium.com/cfc/oplagiumapi.cfc - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration Passed 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
10 plugin tags: plagio, plagium, duplicate, theft, plagiarism...

plagium/plagium.php Passed 13 tests

The main PHP file in "Plagium" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Plagium is an innovative, fast, and easy-to-use means to check text against possible plagiarism or possible sources of origination.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected883 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28416484
PHP24614228
CSS1328171

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/plagium.png29.29KB1.20KB▼ 95.91%