78% lazy-seo

Code Review | Lazy SEO

WordPress plugin Lazy SEO scored78%from 54 tests.

About plugin

  • Plugin page: lazy-seo
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2013
  • Latest release: Feb 24, 2014
  • Number of updates: 130
  • Update frequency: every 1.6 days
  • Top authors: mupu42 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /46,236 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼15.63ms] Passed 4 tests

An overview of server-side resources used by Lazy SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1447.15 ▲3.87
Dashboard /wp-admin3.42 ▲0.1248.30 ▲0.29
Posts /wp-admin/edit.php3.53 ▲0.1744.68 ▼3.07
Add New Post /wp-admin/post-new.php3.26 ▼2.6236.97 ▼59.88
Media Library /wp-admin/upload.php3.34 ▲0.1134.06 ▲0.13
Lazy SEO Settings /wp-admin/options-general.php?page=lazy-slug3.2828.19

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
lazy-geo
lazy-number
lazy-keywords
lazy-check
db_upgraded
widget_recent-comments
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Lazy SEO: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4813.34 ▼1.041.76 ▼0.2545.76 ▼1.06
Dashboard /wp-admin2,210 ▲364.87 ▼1.14103.37 ▼19.9742.79 ▼5.79
Posts /wp-admin/edit.php2,093 ▲72.18 ▲0.2036.65 ▼0.0136.48 ▲3.88
Add New Post /wp-admin/post-new.php6,556 ▲5,02823.14 ▲0.02854.84 ▲188.0662.86 ▲5.33
Media Library /wp-admin/upload.php1,389 ▼24.16 ▼0.0799.52 ▼5.6442.53 ▼5.11
Lazy SEO Settings /wp-admin/options-general.php?page=lazy-slug9262.2025.7525.46

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
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • lazy-geo
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • lazy-check
    • lazy-number-geo
    • widget_recent-posts
    • lazy-number
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=lazy-slug
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=lazy-slug
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lazy-seo/lazyseo.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
The official readme.txt might help

lazy-seo/lazyseo.php 85% from 13 tests

The entry point to "Lazy SEO" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("lazy-seo.php" instead of "lazyseo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin436 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1133153436

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions17
▷ Named functions17100.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
No PNG images were found in this plugin