78% copyright-safeguard-footer-notice

Code Review | Copyright Safeguard Footer Notice

WordPress plugin Copyright Safeguard Footer Notice scored78%from 54 tests.

About plugin

  • Plugin page: copyright-safegua...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2014
  • Latest release: Mar 5, 2015
  • Number of updates: 9
  • Update frequency: every 19.1 days
  • Top authors: wygk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /4,402 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.01MB] [CPU: ▼7.53ms] Passed 4 tests

An overview of server-side resources used by Copyright Safeguard Footer Notice
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.49 ▲1.94
Dashboard /wp-admin3.31 ▼0.0443.82 ▼11.22
Posts /wp-admin/edit.php3.36 ▲0.0042.25 ▼6.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.10 ▼13.96
Media Library /wp-admin/upload.php3.23 ▲0.0036.73 ▲3.71

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Copyright Safeguard Footer Notice
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.25 ▼0.101.86 ▲0.3339.23 ▼3.20
Dashboard /wp-admin2,202 ▲275.64 ▼0.0781.68 ▼30.9436.71 ▼7.57
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0435.04 ▼5.6636.52 ▼4.33
Add New Post /wp-admin/post-new.php1,532 ▲622.94 ▼0.18632.23 ▼21.4053.87 ▲4.47
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0097.21 ▲1.5140.70 ▼1.47
Copyright Safeguard /wp-admin/CopyrightSafeguard-fn-admin.php260.420.0813.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/copyright-safeguard-footer-notice/CopyrightSafeguard-fn-admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copyright-safeguard-footer-notice/CopyrightSafeguard-fn.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/CopyrightSafeguard-fn-admin.php
    • > Network (severe)
    wp-admin/CopyrightSafeguard-fn-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

copyright-safeguard-footer-notice/CopyrightSafeguard-fn.php 92% from 13 tests

Analyzing the main PHP file in "Copyright Safeguard Footer Notice" version 3.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("copyright-safeguard-footer-notice.php" instead of "CopyrightSafeguard-fn.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
Success! There were no dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21322145

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin