90% copyright-shortcode-creator-vict

Code Review | Copyright shortcode creator VICT

WordPress plugin Copyright shortcode creator VICT scored90%from 54 tests.

About plugin

  • Plugin page: copyright-shortco...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 17, 2023
  • Latest release: Oct 26, 2023
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: voordeligict (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /34 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Copyright shortcode creator VICT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.06 ▼3.04
Dashboard /wp-admin3.31 ▲0.0142.42 ▼1.76
Posts /wp-admin/edit.php3.36 ▲0.0142.85 ▼5.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.03 ▼21.29
Media Library /wp-admin/upload.php3.23 ▲0.0133.58 ▼4.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Copyright shortcode creator VICT: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.371.58 ▼0.0442.06 ▼2.74
Dashboard /wp-admin2,189 ▲95.57 ▼0.0880.68 ▼3.3938.28 ▲0.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0433.46 ▼0.7734.06 ▼3.33
Add New Post /wp-admin/post-new.php1,535 ▲918.05 ▼4.98659.18 ▼25.4066.31 ▲14.21
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0495.58 ▼4.7741.34 ▼2.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

copyright-shortcode-creator-vict/copyright-shortcode-creator-vict.php Passed 13 tests

The main PHP file in "Copyright shortcode creator VICT" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
97 characters long description:
Shortcodes to show the current year, the copyright logo and/or the sitename wherever you want it.

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
There were no executable files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171529

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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