83% copyright-editor-easy

Code Review | Copyright Editor - Easy

WordPress plugin Copyright Editor - Easy scored83%from 54 tests.

About plugin

  • Plugin page: copyright-editor-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: May 27, 2020
  • Number of updates: 3
  • Update frequency: every 11.7 days
  • Top authors: thanhph (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Copyright Editor - Easy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.66 ▼1.01
Dashboard /wp-admin3.32 ▼0.0244.00 ▼14.59
Posts /wp-admin/edit.php3.37 ▲0.0243.21 ▼3.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.07 ▼12.04
Media Library /wp-admin/upload.php3.25 ▲0.0234.99 ▲2.68

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Copyright Editor - Easy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.59 ▼1.031.77 ▼0.0742.73 ▲0.27
Dashboard /wp-admin2,225 ▲375.85 ▲0.0597.37 ▼11.2541.23 ▼2.78
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0234.81 ▼4.2233.68 ▲0.37
Add New Post /wp-admin/post-new.php1,546 ▲2423.07 ▼0.13658.63 ▲5.4250.26 ▼3.70
Media Library /wp-admin/upload.php1,404 ▲134.16 ▼0.0397.79 ▼4.4144.23 ▼0.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copyright-editor-easy/copyright-editor-easy.php:13

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #2 (Customization)
You can look at the official readme.txt

copyright-editor-easy/copyright-editor-easy.php 85% from 13 tests

"Copyright Editor - Easy" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1918125

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/logo-pham-huu-thanh-2.png41.11KB15.91KB▼ 61.29%
image/logo-20x20.png3.95KB1.03KB▼ 73.84%