10% wp-better-seo-links

Code Review | WP Better SEO Links

WordPress plugin WP Better SEO Links scored 10% from 54 tests.

About plugin

  • Plugin page: wp-better-seo-links
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Sep 20, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: itswphelp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,729 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-better-seo-links/wp-better-seo-links.php+286
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.25ms] Passed 4 tests

A check of server-side resources used by WP Better SEO Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.63 ▼2.72
Dashboard /wp-admin3.34 ▲0.0446.20 ▼5.74
Posts /wp-admin/edit.php3.39 ▲0.0448.95 ▲1.33
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.29 ▼5.84
Media Library /wp-admin/upload.php3.27 ▲0.0436.98 ▲1.29
Nofollow /wp-admin/options-general.php?page=nofollow-sponsored3.2329.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Better SEO Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲14513.52 ▼0.862.07 ▲0.0244.43 ▼4.71
Dashboard /wp-admin2,261 ▲735.22 ▼0.66110.16 ▼7.1938.63 ▼9.44
Posts /wp-admin/edit.php2,090 ▼22.16 ▲0.1636.14 ▲0.2333.13 ▲1.63
Add New Post /wp-admin/post-new.php1,567 ▲3418.67 ▼4.69636.21 ▼52.8535.14 ▼22.97
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0394.48 ▼11.7639.96 ▼4.60
Nofollow /wp-admin/options-general.php?page=nofollow-sponsored7922.0724.4425.48

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_filter() in wp-content/plugins/wp-better-seo-links/wp-better-seo-links.php:106

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

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-better-seo-links/wp-better-seo-links.php Passed 13 tests

The primary PHP file in "WP Better SEO Links" version 1.0 is used by WordPress to initiate all plugin functionality
75 characters long description:
Better SEO links for: nofollow, sponsored, and ugc (user-generated content)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected962 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript215564697
PHP15548232
Markdown124033

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.15MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png72.89KB72.96KB0.00%
screenshot-1.png77.24KB77.36KB0.00%