84% vk-simple-copy-block

Code Review | VK Simple Copy Block

WordPress plugin VK Simple Copy Block scored84%from 54 tests.

About plugin

  • Plugin page: vk-simple-copy-block
  • Plugin version: 0.1.3.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 13, 2023
  • Latest release: Aug 21, 2023
  • Number of updates: 8
  • Update frequency: every 8.8 days
  • Top authors: vektor-inc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by VK Simple Copy Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0634.49 ▼1.41
Dashboard /wp-admin3.33 ▲0.0344.64 ▼5.01
Posts /wp-admin/edit.php3.39 ▲0.0348.01 ▼2.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.51 ▼25.53
Media Library /wp-admin/upload.php3.26 ▲0.0333.38 ▼2.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for VK Simple Copy Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4613.17 ▼1.384.36 ▲2.4436.95 ▼9.22
Dashboard /wp-admin2,206 ▲184.87 ▼1.09113.16 ▼5.7941.58 ▲1.55
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0040.30 ▼1.5335.14 ▼0.95
Add New Post /wp-admin/post-new.php6,360 ▲4,82628.06 ▲4.66836.03 ▲233.5836.67 ▼17.04
Media Library /wp-admin/upload.php1,382 ▼94.19 ▼0.0596.17 ▲0.6342.67 ▼2.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/vk-simple-copy-block/inc/load.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

vk-simple-copy-block/vk-simple-copy-block.php Passed 13 tests

The main file in "VK Simple Copy Block" v. 0.1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
A block to copy the code of the block inside the copy target.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin271 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON400157
PHP81354107
JavaScript5005
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin