84% dutch-copyright-shortcode-creator-vict

Code Review | DUTCH Copyright shortcode creator VICT

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

About plugin

  • Plugin page: dutch-copyright-s...
  • Plugin version: 1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 27, 2020
  • Latest release: Oct 26, 2023
  • Number of updates: 11
  • Update frequency: every 96.6 days
  • Top authors: voordeligict (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼0.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 /3.47 ▲0.0039.86 ▼1.80
Dashboard /wp-admin3.31 ▲0.0044.66 ▼0.17
Posts /wp-admin/edit.php3.36 ▲0.0045.47 ▼2.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.10 ▲3.57
Media Library /wp-admin/upload.php3.23 ▲0.0034.63 ▲1.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

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 /2,814 ▲2814.19 ▼0.161.94 ▲0.1942.93 ▲2.88
Dashboard /wp-admin2,198 ▲215.62 ▼0.0489.50 ▼6.9240.43 ▼1.73
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0139.85 ▲3.4234.48 ▲0.01
Add New Post /wp-admin/post-new.php1,535 ▲918.25 ▼5.45613.97 ▼78.5463.48 ▲4.88
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0595.77 ▲2.7042.45 ▼0.94

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 97% 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 Passed 13 tests

The main PHP script in "DUTCH Copyright shortcode creator VICT" version 1.9 is automatically included on every request by WordPress
104 characters long description:
Shortcodes om het huidige jaartal, het copyright logo en/of de sitenaam weer te geven waar je maar wilt.

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