93% copyrightpro

Code Review | CopyRightPro

WordPress plugin CopyRightPro scored 93% from 54 tests.

About plugin

  • Plugin page: copyrightpro
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.4
  • WordPress version: 5.9.2
  • First release: Aug 3, 2011
  • Latest release: May 31, 2017
  • Number of updates: 23
  • Update frequency: every 92.5 days
  • Top authors: afperea (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active / 71,757 total downloads

Benchmarks

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

Analyzing server-side resources used by CopyRightPro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0556.89 ▲7.50
Dashboard /wp-admin3.43 ▲0.0232.19 ▼2.77
Posts /wp-admin/edit.php3.66 ▲0.0235.23 ▼1.65
Add New Post /wp-admin/post-new.php6.93 ▼0.0790.65 ▼1,195.99
Media Library /wp-admin/upload.php3.31 ▲0.0225.70 ▲2.23

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, no new options
New tables
wp_copyrightpro

Browser metrics Passed 4 tests

Checking browser requirements for CopyRightPro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲9215.87 ▼0.115.64 ▼0.2117.73 ▲15.38
Dashboard /wp-admin2,912 ▲546.16 ▲0.01115.48 ▼18.21151.40 ▼13.42
Posts /wp-admin/edit.php2,711 ▲173.24 ▼0.0062.81 ▼0.02140.98 ▲1.22
Add New Post /wp-admin/post-new.php1,773 ▲1517.14 ▼4.34439.29 ▲18.63159.93 ▲2.64
Media Library /wp-admin/upload.php1,715 ▲175.53 ▼0.01138.17 ▼5.06186.02 ▼0.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: updatecopy in wp-content/plugins/copyrightpro/panel.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/copyrightpro/panel.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/copyrightpro/copyrightpro.php:134
    • > PHP Notice
      Undefined index: updatelink in wp-content/plugins/copyrightpro/panel.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function copyrightpro_consulta() in wp-content/plugins/copyrightpro/scripts.php:7

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

copyrightpro/copyrightpro.php 92% from 13 tests

"CopyRightPro" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin340 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35047213
PO File1212290
CSS13137

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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%
Functions10
▷ Named functions10100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png4.94KB2.67KB▼ 46.00%