89% clipboard-with-title-content-ivd

Code Review | Clipboard with title content-IVD

WordPress plugin Clipboard with title content-IVD scored89%from 54 tests.

About plugin

  • Plugin page: clipboard-with-ti...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Jun 5, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: vanjok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /545 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Clipboard with title content-IVD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.79 ▼4.03
Dashboard /wp-admin3.33 ▲0.0344.62 ▼5.12
Posts /wp-admin/edit.php3.38 ▲0.0349.53 ▲0.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.96 ▼4.76
Media Library /wp-admin/upload.php3.26 ▲0.0336.08 ▲2.32
Clipboard-system-IVD /wp-admin/options-general.php?page=id_clipboard_sites3.2329.92

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Clipboard with title content-IVD
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.61 ▼1.224.89 ▲3.3241.04 ▼6.62
Dashboard /wp-admin2,215 ▲275.81 ▲0.7395.67 ▼7.0740.37 ▼3.32
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0435.37 ▼2.5130.32 ▼4.97
Add New Post /wp-admin/post-new.php1,536 ▲823.49 ▲5.21667.21 ▲7.4260.96 ▲7.54
Media Library /wp-admin/upload.php1,397 ▲124.20 ▼0.0193.69 ▼4.3141.00 ▼2.90
Clipboard-system-IVD /wp-admin/options-general.php?page=id_clipboard_sites8682.0723.5123.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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 require attention: You can look at the official readme.txt

clipboard-with-title-content-ivd/index.php 85% from 13 tests

The main file in "Clipboard with title content-IVD" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clipboard-with-title-content-ivd.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin241 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34116128
CSS17295
JavaScript13018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.00
▷ Minimum class complexity4.00
▷ Maximum class complexity10.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image.png189.69KB84.55KB▼ 55.43%