84% custom-card-link

Code Review | Custom Card Link

WordPress plugin Custom Card Link scored84%from 54 tests.

About plugin

  • Plugin page: custom-card-link
  • Plugin version: 1.0.2
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2022
  • Latest release: May 16, 2023
  • Number of updates: 10
  • Update frequency: every 32.1 days
  • Top authors: takao502 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.76ms] Passed 4 tests

Analyzing server-side resources used by Custom Card Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1644.60 ▲1.24
Dashboard /wp-admin3.45 ▲0.1551.65 ▼3.04
Posts /wp-admin/edit.php3.56 ▲0.2153.32 ▲2.28
Add New Post /wp-admin/post-new.php6.04 ▲0.1598.27 ▼7.53
Media Library /wp-admin/upload.php3.37 ▲0.1537.85 ▲2.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Card Link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲4613.61 ▼0.772.03 ▼0.0442.23 ▼1.95
Dashboard /wp-admin2,215 ▲245.89 ▲0.01101.60 ▼7.4438.31 ▲1.30
Posts /wp-admin/edit.php2,104 ▲152.05 ▲0.0339.74 ▲2.9735.38 ▼4.25
Add New Post /wp-admin/post-new.php6,196 ▲4,66019.10 ▼4.19921.55 ▲306.8262.53 ▲15.72
Media Library /wp-admin/upload.php1,403 ▲184.20 ▲0.0496.86 ▼10.1646.97 ▼0.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Ccl_Plugin\\functions\\rest_api\\add_action() in wp-content/plugins/custom-card-link/functions/rest_api.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Ccl_Plugin\\functions\\rest_api\\add_action() in wp-content/plugins/custom-card-link/functions/style.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Ccl_Plugin\\functions\\rest_api\\add_action() in wp-content/plugins/custom-card-link/functions/rest_api.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: block

custom-card-link/custom-card-link.php 92% from 13 tests

"Custom Card Link" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected15,044 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JSON131012,051
JavaScript1633501,284
Sass52380773
PHP873187668
PO File26372159
Markdown4400105
CSS3004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity24.00
▷ Minimum class complexity23.00
▷ Maximum class complexity25.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods430.77%
▷ Public methods646.15%
▷ Protected methods00.00%
▷ Private methods753.85%
Functions14
▷ Named functions642.86%
▷ Anonymous functions857.14%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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 images were found in this plugin