84% content-anchor-links

Code Review | Content Anchor Links

WordPress plugin Content Anchor Links scored84%from 54 tests.

About plugin

  • Plugin page: content-anchor-links
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 25, 2016
  • Latest release: Dec 23, 2020
  • Number of updates: 43
  • Update frequency: every 33.9 days
  • Top authors: xnau (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /21,319 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.87ms] Passed 4 tests

A check of server-side resources used by Content Anchor Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.45 ▼5.82
Dashboard /wp-admin3.31 ▲0.0153.69 ▲0.63
Posts /wp-admin/edit.php3.37 ▲0.0149.99 ▲0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.85 ▲1.84
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▲1.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Content Anchor Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.071.71 ▼0.2543.22 ▲3.38
Dashboard /wp-admin2,209 ▲215.88 ▲0.9997.74 ▼3.0339.86 ▼3.53
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0139.95 ▼3.0234.93 ▼1.24
Add New Post /wp-admin/post-new.php1,534 ▲1523.07 ▼0.22606.30 ▼67.0762.79 ▲6.80
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0293.23 ▼10.6140.62 ▼3.23

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/content-anchor-links/content-anchor-links.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: anchor

content-anchor-links/content-anchor-links.php 92% from 13 tests

"Content Anchor Links" version 1.6.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP351193164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods317.65%
▷ Protected methods00.00%
▷ Private methods1482.35%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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