90% anchor-block

Code Review | Anchor Block

WordPress plugin Anchor Block scored90%from 54 tests.

About plugin

  • Plugin page: anchor-block
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2019
  • Latest release: Oct 26, 2022
  • Number of updates: 8
  • Update frequency: every 141.8 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /11,948 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Anchor Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.91 ▲2.21
Dashboard /wp-admin3.33 ▲0.0347.73 ▲0.96
Posts /wp-admin/edit.php3.39 ▲0.0350.77 ▲2.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.58 ▼3.54
Media Library /wp-admin/upload.php3.26 ▲0.0338.24 ▲6.51

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Anchor Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,992 ▲25721.32 ▲7.016.66 ▲4.8242.66 ▲0.74
Dashboard /wp-admin2,294 ▲10610.98 ▲5.08246.06 ▲144.5740.34 ▼0.82
Posts /wp-admin/edit.php2,212 ▲12310.28 ▲8.1090.68 ▲47.5435.18 ▲0.45
Add New Post /wp-admin/post-new.php6,189 ▲4,65622.00 ▼1.11749.42 ▲70.9737.43 ▼17.81
Media Library /wp-admin/upload.php1,496 ▲11112.40 ▲8.16142.69 ▲43.1141.54 ▼1.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: ancre, gutenberg, anchor, link

anchor-block/anchor-block.php Passed 13 tests

The primary PHP file in "Anchor Block" version 0.1 is used by WordPress to initiate all plugin functionality
83 characters long description:
Anchor Block let you generate internal link to any section of your Gutenberg pages.

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
Everything looks great! No dangerous files found in this plugin227 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2121124
CSS20051
PHP241349
SVG1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin