89% cc-link-shortcode

Code Review | CC-Link-Shortcode

WordPress plugin CC-Link-Shortcode scored89%from 54 tests.

About plugin

  • Plugin page: cc-link-shortcode
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.2-5.9.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2018
  • Latest release: Mar 16, 2022
  • Number of updates: 4
  • Update frequency: every 375.8 days
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.50ms] Passed 4 tests

A check of server-side resources used by CC-Link-Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.05 ▲3.44
Dashboard /wp-admin3.36 ▲0.0545.56 ▼3.21
Posts /wp-admin/edit.php3.47 ▲0.1148.70 ▲0.14
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.42 ▼28.25
Media Library /wp-admin/upload.php3.28 ▲0.0535.00 ▲1.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for CC-Link-Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.161.77 ▼0.3839.58 ▼5.02
Dashboard /wp-admin2,209 ▲185.83 ▼0.0699.30 ▼0.7239.42 ▼4.79
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0339.81 ▼0.4934.82 ▼3.21
Add New Post /wp-admin/post-new.php1,542 ▲2818.34 ▲0.64599.53 ▼41.7454.17 ▲3.06
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0496.50 ▼5.6241.13 ▼2.66

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 were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: link, a, link shortcode, permalink, url...

cc-link-shortcode/plugin.php 77% from 13 tests

This is the main PHP file of "CC-Link-Shortcode" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/")
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Main file name: The principal plugin file should be the same as the plugin slug ("cc-link-shortcode.php" instead of "plugin.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
No dangerous file extensions were detected187 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP57274187
HTML1010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods20
▷ Static methods840.00%
▷ Public methods1470.00%
▷ Protected methods630.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin