78% ezee-cpyright-protector

Code Review | EZee Copyright Protector

WordPress plugin EZee Copyright Protector scored78%from 54 tests.

About plugin

  • Plugin page: ezee-cpyright-pro...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Jul 17, 2020
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: debp85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /463 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.90ms] Passed 4 tests

An overview of server-side resources used by EZee Copyright Protector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0650.65 ▲11.31
Dashboard /wp-admin3.36 ▲0.0146.92 ▼12.73
Posts /wp-admin/edit.php3.41 ▲0.0550.30 ▲0.47
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.45 ▼8.63
Media Library /wp-admin/upload.php3.28 ▲0.0534.42 ▼2.72
EZee Copyright Protector /wp-admin/options-general.php?page=ezee-cpyright-protector3.2230.19

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
ezee-cpyright-protector-settings
widget_recent-comments

Browser metrics Passed 4 tests

EZee Copyright Protector: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,114 ▲36814.15 ▼0.2120.33 ▲18.6339.73 ▲0.12
Dashboard /wp-admin2,228 ▲435.83 ▼0.0592.07 ▼7.6165.39 ▲21.17
Posts /wp-admin/edit.php2,118 ▲292.01 ▲0.0338.00 ▲1.2133.73 ▼1.63
Add New Post /wp-admin/post-new.php1,539 ▲618.47 ▼4.76628.46 ▼59.2352.47 ▲1.19
Media Library /wp-admin/upload.php1,410 ▲254.19 ▼0.0091.69 ▼7.5372.01 ▲25.39
EZee Copyright Protector /wp-admin/options-general.php?page=ezee-cpyright-protector1,5196.87133.77102.68

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ezee-cpyright-protector
    • > Warning in wp-content/plugins/ezee-cpyright-protector/index.php+150
    session_start(): Cannot start session when headers already sent

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ezee-cpyright-protector/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: content protector, copyright protector, anti plagiarism

ezee-cpyright-protector/index.php 92% from 13 tests

The primary PHP file in "EZee Copyright Protector" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ezee-cpyright-protector.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin379 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16614211
JavaScript16725166
CSS2362

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 2.24MB with 1.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-2.png857.85KB277.58KB▼ 67.64%
css/themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png0.33KB0.16KB▼ 53.08%
css/themes/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png5.69KB2.08KB▼ 63.46%
css/themes/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png0.33KB0.13KB▼ 60.36%
css/themes/redmond/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%