100% add-anchor-links

Code Review | Add Anchor Links

WordPress plugin Add Anchor Links scored 100% 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-5.7
  • WordPress version: 5.9.2
  • First release: Feb 8, 2018
  • Latest release: Mar 7, 2021
  • Number of updates: 12
  • Update frequency: every 94.3 days
  • Top authors: vyskoczilova (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 7,771 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼296.63ms] Passed 4 tests

This is a short check of server-side resources used by Add Anchor Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1055.52 ▲2.67
Dashboard /wp-admin3.45 ▲0.0433.57 ▼0.28
Posts /wp-admin/edit.php3.68 ▲0.0438.13 ▲0.33
Add New Post /wp-admin/post-new.php6.92 ▼0.0594.98 ▼1,185.48
Media Library /wp-admin/upload.php3.33 ▲0.0426.00 ▼1.09
Add Anchor Links /wp-admin/options-general.php?page=add_anchor_links3.3026.36

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Anchor Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,826 ▲7215.84 ▼0.207.28 ▲0.752.63 ▲0.15
Dashboard /wp-admin2,897 ▲436.05 ▼0.16117.37 ▼12.51152.77 ▼6.96
Posts /wp-admin/edit.php2,692 ▲43.25 ▲0.0160.95 ▼3.09136.21 ▼5.68
Add New Post /wp-admin/post-new.php1,695 ▲521.64 ▲1.13418.79 ▼43.64155.54 ▼4.18
Media Library /wp-admin/upload.php1,703 ▲25.53 ▲0.01160.42 ▲21.11190.03 ▲10.71
Add Anchor Links /wp-admin/options-general.php?page=add_anchor_links1,0302.3852.03111.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: content links, headings, anchor links, content, anchor

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

The entry point to "Add Anchor Links" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin226 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP361146207
CSS10019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin