90% add-anchor-links

Code Review | Add Anchor Links

WordPress plugin Add Anchor Links scored90%from 54 tests.

About plugin

  • Plugin page: add-anchor-links
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: May 20, 2022
  • Number of updates: 13
  • Update frequency: every 120.8 days
  • Top authors: vyskoczilova (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,935 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Add Anchor Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.93 ▼4.35
Dashboard /wp-admin3.34 ▲0.0452.67 ▼1.31
Posts /wp-admin/edit.php3.39 ▲0.0459.45 ▲1.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.03 ▼26.90
Media Library /wp-admin/upload.php3.27 ▲0.0443.46 ▲7.41
Add Anchor Links /wp-admin/options-general.php?page=add_anchor_links3.2335.33

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

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

Browser metrics Passed 4 tests

Add Anchor Links: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.71 ▲0.091.81 ▲0.0543.28 ▼3.28
Dashboard /wp-admin2,199 ▲225.70 ▲0.1187.06 ▼6.0038.44 ▼0.44
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0036.48 ▼3.1435.43 ▼1.99
Add New Post /wp-admin/post-new.php1,529 ▲323.33 ▲0.27655.86 ▲18.5747.31 ▼2.14
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.00101.82 ▼6.7343.52 ▼3.76
Add Anchor Links /wp-admin/options-general.php?page=add_anchor_links8112.0025.1827.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: headings, content, anchor links, anchor, content links

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

Analyzing the main PHP file in "Add Anchor Links" version 1.0.4
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected226 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP361146207
CSS10019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin