90% change-storefront-copyright-widgets

Code Review | Change Copyright for Storefront using Widgets - Change Storefront copyright text with menus, logos, html, etc.

WordPress plugin Change Copyright for Storefront using Widgets - Change Storefront copyright text with menus, logos, html, etc. scored90%from 54 tests.

About plugin

  • Plugin page: change-storefront...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Sep 14, 2020
  • Latest release: Jul 19, 2021
  • Number of updates: 13
  • Update frequency: every 23.9 days
  • Top authors: wpcentrics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,716 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
Installer ran successfully

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

Server-side resources used by Change Copyright for Storefront using Widgets - Change Storefront copyright text with menus, logos, html, etc.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.06 ▼5.53
Dashboard /wp-admin3.35 ▲0.0045.78 ▼14.84
Posts /wp-admin/edit.php3.41 ▲0.0446.25 ▼0.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0489.65 ▼2.26
Media Library /wp-admin/upload.php3.28 ▲0.0432.76 ▼0.54

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Change Copyright for Storefront using Widgets - Change Storefront copyright text with menus, logos, html, etc.
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲5614.32 ▼0.031.65 ▼0.0735.49 ▼1.32
Dashboard /wp-admin2,195 ▲155.62 ▼0.0592.52 ▲7.2042.00 ▼0.43
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0339.49 ▲4.5936.85 ▼0.29
Add New Post /wp-admin/post-new.php1,535 ▲718.20 ▼5.09584.00 ▼53.8065.58 ▲5.66
Media Library /wp-admin/upload.php1,397 ▼64.20 ▲0.0096.12 ▼3.4543.71 ▲1.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: footer, copyright, storefront, customizer, credit

change-storefront-copyright-widgets/change-storefront-copyright-widgets.php 92% from 13 tests

The principal PHP file in "Change Copyright for Storefront using Widgets - Change Storefront copyright text with menus, logos, html, etc." v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.4.0" instead of "4.4")

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
No dangerous file extensions were detected210 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24367157
CSS11253

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin