84% lana-seo

Code Review | Lana SEO

WordPress plugin Lana SEO scored84%from 54 tests.

About plugin

  • Plugin page: lana-seo
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Apr 7, 2023
  • Number of updates: 39
  • Update frequency: every 58.5 days
  • Top authors: lanacodes (51.28%)lanadesign (51.28%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,288 total downloads


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.27MB] [CPU: ▼2.95ms] Passed 4 tests

This is a short check of server-side resources used by Lana SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2642.74 ▼1.40
Dashboard /wp-admin3.59 ▲0.2558.36 ▼2.23
Posts /wp-admin/edit.php3.71 ▲0.3551.00 ▲2.46
Add New Post /wp-admin/post-new.php6.18 ▲0.2987.31 ▼10.64
Media Library /wp-admin/upload.php3.50 ▲0.2739.18 ▲3.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Lana SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲15514.75 ▲0.401.77 ▼0.1545.32 ▲1.28
Dashboard /wp-admin2,344 ▲1676.38 ▲0.69115.57 ▲29.1639.17 ▼0.88
Posts /wp-admin/edit.php2,283 ▲1833.58 ▲1.5648.28 ▲13.7131.74 ▼4.34
Add New Post /wp-admin/post-new.php6,720 ▲5,19428.14 ▲5.16878.40 ▲194.0546.06 ▼11.72
Media Library /wp-admin/upload.php1,426 ▲294.42 ▲0.2481.27 ▼27.1143.49 ▼5.55
Lana SEO /wp-admin/lana-seo-settings.php260.420.0813.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/lana-seo-settings.php
    • > Network (severe)
    wp-admin/lana-seo-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #2 in lana-seo/assets to your readme.txt
The official readme.txt is a good inspiration

lana-seo/lana-seo.php Passed 13 tests

The main file in "Lana SEO" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Search Engine Optimization with automatic generation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,727 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2993.55%
▷ Anonymous functions26.45%
▷ Global constants3100.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
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings