100% r3df-copyright-message

Code Review | R3DF Copyright Message

WordPress plugin R3DF Copyright Message scored 100% from 54 tests.

About plugin

  • Plugin page: r3df-copyright-me...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3
  • WordPress version: 5.8.1
  • First release: Jul 3, 2015
  • Latest release: Oct 4, 2015
  • Number of updates: 5
  • Update frequency: every 18.6 days
  • Top authors: r3df (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 668 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by R3DF Copyright Message
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1638.07 ▲10.60
Dashboard /wp-admin3.10 ▲0.0447.83 ▲0.71
Posts /wp-admin/edit.php3.15 ▲0.0452.33 ▲4.72
Add New Post /wp-admin/post-new.php5.46 ▲0.0397.30 ▼554.85
Media Library /wp-admin/upload.php3.04 ▲0.0333.41 ▼12.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

R3DF Copyright Message: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲7715.88 ▲0.359.51 ▼1.0951.87 ▲1.58
Dashboard /wp-admin2,973 ▲426.03 ▲0.10142.58 ▼2.67118.53 ▼4.29
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.0168.91 ▲0.8098.43 ▼0.67
Add New Post /wp-admin/post-new.php1,683 ▼018.75 ▼0.00395.88 ▼37.30118.97 ▼3.30
Media Library /wp-admin/upload.php1,807 ▼05.00 ▲0.01160.55 ▼6.89127.84 ▼5.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: copyright, footer, copyright message

r3df-copyright-message/r3df-copyright-message.php Passed 13 tests

The principal PHP file in "R3DF Copyright Message" v. 1.1.0 is loaded by WordPress automatically on each request
61 characters long description:
Inserts a customizable copyright message in the theme footer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin299 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP269162187
PO File1151851
CSS16035
JavaScript13226

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 files were detected