10% easy-copyright

Code Review | Easy Copyright

WordPress plugin Easy Copyright scored10%from 54 tests.

About plugin

  • Plugin page: easy-copyright
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2023
  • Latest release: Oct 3, 2023
  • Number of updates: 9
  • Update frequency: every 26.1 days
  • Top authors: rdndev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /364 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/easy-copyright/inc/class-easycopyright-custompost.php+328
    syntax error, unexpected '}'

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.21ms] Passed 4 tests

Server-side resources used by Easy Copyright
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.77 ▼2.56
Dashboard /wp-admin3.31 ▲0.0051.10 ▼1.29
Posts /wp-admin/edit.php3.36 ▲0.0053.05 ▲1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.15 ▼2.47
Media Library /wp-admin/upload.php3.23 ▲0.0039.78 ▲5.47

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

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

Browser metrics Passed 4 tests

Easy Copyright: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.601.77 ▼0.1440.37 ▼1.65
Dashboard /wp-admin2,206 ▲185.83 ▲0.92110.81 ▲1.0350.60 ▲9.19
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0437.37 ▼0.3935.97 ▲0.59
Add New Post /wp-admin/post-new.php1,533 ▼022.89 ▼0.33663.32 ▼29.5577.38 ▲21.24
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.01110.25 ▲4.3350.07 ▲6.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/inc/class-easycopyright.php:6
    • > PHP Parse error
      syntax error, unexpected '}' in wp-content/plugins/easy-copyright/inc/class-easycopyright-custompost.php on line 328
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/inc/class-easycopyright-shortcode.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/easy-copyright.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/inc/class-easycopyright-widget.php:5

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: shortcode, copyright

easy-copyright/easy-copyright.php 92% from 13 tests

The main PHP script in "Easy Copyright" version 1.0.4 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected948 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8134294521
Sass1428217
CSS13512173
Markdown114023
JavaScript14014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.60
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods2678.79%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin