10% seo-links-generator

Code Review | SEO Links Generator

WordPress plugin SEO Links Generator scored 10% from 54 tests.

About plugin

  • Plugin page: seo-links-generator
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.6
  • WordPress version: 6.3.1
  • First release: Sep 12, 2017
  • Latest release: Sep 12, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: vimal.ghorecha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 860 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/seo-links-generator/seo-links-generator.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; SEOLinksGenerator has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼52.28ms] Passed 4 tests

A check of server-side resources used by SEO Links Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.04 ▼35.33
Dashboard /wp-admin2.25 ▼1.067.70 ▼38.32
Posts /wp-admin/edit.php2.25 ▼1.116.72 ▼44.16
Add New Post /wp-admin/post-new.php2.25 ▼3.645.96 ▼91.31
Media Library /wp-admin/upload.php2.25 ▼0.987.63 ▼29.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
SEOLinksGenerator
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

SEO Links Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.82 ▲0.441.97 ▲0.0142.70 ▼7.02
Dashboard /wp-admin2,210 ▲224.84 ▼0.01101.55 ▼5.3136.96 ▼2.28
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0536.23 ▼3.4135.00 ▲4.40
Add New Post /wp-admin/post-new.php1,536 ▲323.21 ▲0.10582.21 ▼36.5269.70 ▲12.14
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0799.63 ▼6.6743.90 ▼1.45
SEO Links Generator /wp-admin/seo-links-generator.php260.440.0913.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/seo-links-generator/seo-links-generator.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; SEOLinksGenerator has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • SEOLinksGenerator
    • widget_theysaidso_widget

Smoke tests 50% from 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 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-links-generator/seo-links-generator.php:307
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/seo-links-generator/seo-links-generator-admin.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/seo-links-generator.php
    • > Network (severe)
    wp-admin/seo-links-generator.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Plugin settings page)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

seo-links-generator/seo-links-generator.php Passed 13 tests

The entry point to "SEO Links Generator" version 1.0 is a PHP file that has certain tags in its header comment area
120 characters long description:
With SEO Links Generator you can easily add links (automatically) for keywords and phrases in posts, pages and comments.

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
Everything looks great! No dangerous files found in this plugin1,004 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP38119583
PO File2118203339
JavaScript13048
CSS10034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity125.00
▷ Minimum class complexity125.00
▷ Maximum class complexity125.00
Average method complexity11.33
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png20.90KB13.28KB▼ 36.45%
screenshot-2.png21.27KB12.64KB▼ 40.55%
screenshot-4.png24.86KB15.98KB▼ 35.73%
screenshot-1.png28.39KB17.62KB▼ 37.95%