84% wp-simple-anchors-links

Code Review | WP Simple Anchors Links

WordPress plugin WP Simple Anchors Links scored 84% from 54 tests.

About plugin

  • Plugin page: wp-simple-anchors...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Aug 24, 2014
  • Latest release: Aug 24, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kilukrumedia (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 14,718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.36ms] Passed 4 tests

A check of server-side resources used by WP Simple Anchors Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.51 ▲1.86
Dashboard /wp-admin3.36 ▲0.0652.44 ▲2.32
Posts /wp-admin/edit.php3.48 ▲0.1243.20 ▼4.37
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.85 ▼25.24
Media Library /wp-admin/upload.php3.29 ▲0.0638.82 ▲7.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Simple Anchors Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13614.80 ▲0.551.99 ▲0.3443.96 ▲1.02
Dashboard /wp-admin2,271 ▲805.88 ▼0.02106.98 ▼10.3844.07 ▼1.24
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0533.72 ▼12.0133.16 ▲0.96
Add New Post /wp-admin/post-new.php1,527 ▲722.01 ▼1.27652.57 ▲10.6961.62 ▲12.54
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.00105.88 ▲8.9147.02 ▲5.28

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
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-simple-anchors-links/wp-simple-anchors-links.php:41

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: links, anchors, wpanchor, link, href...

wp-simple-anchors-links/wp-simple-anchors-links.php Passed 13 tests

The main PHP script in "WP Simple Anchors Links" version 1.0.0 is automatically included on every request by WordPress
64 characters long description:
Insert simply many anchors to pages, posts and custom post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected409 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4141161292
CSS282560
JavaScript262337
SVG10020

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.48
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icons/anchor.png4.03KB1.36KB▼ 66.21%