84% elvez-edit-copyright

Code Review | Elvez Edit Copyright

WordPress plugin Elvez Edit Copyright scored 84% from 54 tests.

About plugin

  • Plugin page: elvez-edit-copyright
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Aug 8, 2020
  • Latest release: Aug 23, 2021
  • Number of updates: 19
  • Update frequency: every 20.1 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.18ms] Passed 4 tests

An overview of server-side resources used by Elvez Edit Copyright
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.01 ▼1.62
Dashboard /wp-admin3.33 ▲0.0247.37 ▼3.77
Posts /wp-admin/edit.php3.44 ▲0.0846.64 ▲0.77
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.89 ▼4.08
Media Library /wp-admin/upload.php3.25 ▲0.0235.93 ▲1.33
Edit Copyright /wp-admin/admin.php?page=elvez-edit-copyright3.2231.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
elvez_edit_copyright_copyright_name
widget_recent-posts
elvez_edit_copyright_copyright_url
elvez_edit_copyright_copyright_year
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Elvez Edit Copyright
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.70 ▼0.615.79 ▲4.2837.35 ▼4.92
Dashboard /wp-admin2,233 ▲485.79 ▲0.83101.55 ▼3.5440.79 ▼0.42
Posts /wp-admin/edit.php2,116 ▲271.99 ▼0.0237.08 ▲1.3336.18 ▲4.33
Add New Post /wp-admin/post-new.php1,537 ▲1823.36 ▲0.20632.15 ▼33.8649.88 ▼12.64
Media Library /wp-admin/upload.php1,409 ▲214.23 ▲0.0293.34 ▼3.0841.90 ▼3.73
Edit Copyright /wp-admin/admin.php?page=elvez-edit-copyright8252.0623.1826.71

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • elvez_edit_copyright_copyright_url
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • elvez_edit_copyright_copyright_name
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • elvez_edit_copyright_copyright_year
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/elvez-edit-copyright/admin/partials/elvez-edit-copyright-admin-display.php
    • > /wp-content/plugins/elvez-edit-copyright/public/partials/elvez-edit-copyright-public-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: copyright, theme, footer

elvez-edit-copyright/elvez-edit-copyright.php 85% from 13 tests

The main file in "Elvez Edit Copyright" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.2")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin524 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12154622288
CSS32942210
JavaScript283526

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods412.90%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin