94% dutch-copyright-shortcode-creator-vict

Code Review | DUTCH Copyright shortcode creator VICT

WordPress plugin DUTCH Copyright shortcode creator VICT scored 94% from 54 tests.

About plugin

  • Plugin page: dutch-copyright-s...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 5.8.1
  • First release: Nov 27, 2020
  • Latest release: Jul 12, 2021
  • Number of updates: 5
  • Update frequency: every 45.4 days
  • Top authors: voordeligict (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 155 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by DUTCH Copyright shortcode creator VICT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.58 ▲16.07
Dashboard /wp-admin3.06 ▲0.0145.81 ▼0.07
Posts /wp-admin/edit.php3.12 ▲0.0141.17 ▼4.54
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.63 ▼629.19
Media Library /wp-admin/upload.php3.01 ▼0.0033.50 ▼8.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by DUTCH Copyright shortcode creator VICT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9716.38 ▲0.7010.23 ▼1.8449.56 ▲0.94
Dashboard /wp-admin2,970 ▲365.90 ▼0.27144.17 ▼5.91117.02 ▲5.00
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0167.04 ▼1.6688.05 ▲3.83
Add New Post /wp-admin/post-new.php1,498 ▼11718.85 ▼2.61402.37 ▲95.04110.86 ▲1.55
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.02160.22 ▲0.97115.53 ▼3.61

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
Uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dutch-copyright-shortcode-creator-vict/dutch-copyright-shortcode-creator-vict.php:18

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

dutch-copyright-shortcode-creator-vict/dutch-copyright-shortcode-creator-vict.php 92% from 13 tests

The main PHP script in "DUTCH Copyright shortcode creator VICT" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171528

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.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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected