84% common-links

Code Review | Common Links

WordPress plugin Common Links scored84%from 54 tests.

About plugin

  • Plugin page: common-links
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Jan 24, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: UaMV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /639 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.28ms] Passed 4 tests

Server-side resources used by Common Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.84 ▼2.36
Dashboard /wp-admin3.36 ▲0.0649.22 ▼7.38
Posts /wp-admin/edit.php3.41 ▲0.0547.59 ▼0.59
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.77 ▲1.23
Media Library /wp-admin/upload.php3.29 ▲0.0536.08 ▲3.52
Common Links /wp-admin/edit.php?post_type=common_link3.3337.27

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Common Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.26 ▼1.121.79 ▼0.0643.28 ▲1.67
Dashboard /wp-admin2,212 ▲245.85 ▼0.03113.51 ▲1.1541.37 ▼4.97
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0135.81 ▲2.1532.19 ▼5.16
Add New Post /wp-admin/post-new.php1,545 ▲318.51 ▲0.09608.83 ▲11.7343.90 ▼8.74
Media Library /wp-admin/upload.php1,397 ▲94.22 ▲0.0195.94 ▼11.4340.61 ▼8.34
Common Links /wp-admin/edit.php?post_type=common_link1,0701.9328.9727.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/common-links/common-links.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


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 to be fixed: The official readme.txt is a good inspiration

common-links/common-links.php Passed 13 tests

The primary PHP file in "Common Links" version 1.1 is used by WordPress to initiate all plugin functionality
35 characters long description:
Adds custom links to the link query

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin