83% copyright-shortcode

Code Review | Copyright Shortcode

WordPress plugin Copyright Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: copyright-shortcode
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Jun 14, 2015
  • Latest release: Jun 14, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Code Muffin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Copyright Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.54 ▼1.67
Dashboard /wp-admin3.31 ▲0.0044.39 ▼3.61
Posts /wp-admin/edit.php3.36 ▲0.0048.06 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.42 ▼5.93
Media Library /wp-admin/upload.php3.23 ▲0.0033.74 ▼3.10

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Copyright Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.441.91 ▼0.0139.86 ▼4.87
Dashboard /wp-admin2,209 ▲214.89 ▲0.05108.94 ▲4.8241.70 ▼6.37
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0340.09 ▼2.9334.91 ▼1.63
Add New Post /wp-admin/post-new.php1,537 ▲2323.36 ▲5.88601.92 ▼45.4857.56 ▼4.82
Media Library /wp-admin/upload.php1,391 ▼04.25 ▼0.01103.74 ▲3.0741.86 ▼2.77

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/copyright-shortcode/copyright.php:20

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (The visible output, and the HTML behind it) image required
Please take inspiration from this readme.txt

copyright-shortcode/copyright.php 85% from 13 tests

The main PHP script in "Copyright Shortcode" version 1... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("copyright-shortcode.php" instead of "copyright.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121312

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png9.42KB4.81KB▼ 48.92%