94% royal-copyright-text

Code Review | Royal Copyright Text

WordPress plugin Royal Copyright Text scored 94% from 54 tests.

About plugin

  • Plugin page: royal-copyright-text
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.5.2
  • WordPress version: 5.9.2
  • First release: Jul 17, 2014
  • Latest release: Jun 1, 2016
  • Number of updates: 3
  • Update frequency: every 228.7 days
  • Top authors: royaltechbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 524 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼295.28ms] Passed 4 tests

An overview of server-side resources used by Royal Copyright Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.79 ▲3.20
Dashboard /wp-admin3.41 ▲0.0032.77 ▼4.82
Posts /wp-admin/edit.php3.65 ▲0.0036.11 ▼1.51
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.18 ▼1,175.16
Media Library /wp-admin/upload.php3.30 ▲0.0026.25 ▲0.36

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Royal Copyright Text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲2115.99 ▲0.795.72 ▼0.632.42 ▼0.27
Dashboard /wp-admin2,899 ▲386.13 ▼0.20117.84 ▼16.58141.07 ▼18.63
Posts /wp-admin/edit.php2,698 ▲73.23 ▼0.0065.92 ▼5.18145.25 ▼4.19
Add New Post /wp-admin/post-new.php1,638 ▼5220.12 ▼1.03434.47 ▼2.72143.90 ▼7.81
Media Library /wp-admin/upload.php1,702 ▲45.53 ▲0.01142.80 ▲4.68163.27 ▼24.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/royal-copyright-text/royal-copyright-text.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: tree, menu tree, family tree, menu

royal-copyright-text/royal-copyright-text.php 92% from 13 tests

The primary PHP file in "Royal Copyright Text" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15926

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
There are no PNG files in this plugin