84% lh-seo-meta-tags

Code Review | LH SEO Meta Tags

WordPress plugin LH SEO Meta Tags scored84%from 54 tests.

About plugin

  • Plugin page: lh-seo-meta-tags
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2018
  • Latest release: Jan 14, 2019
  • Number of updates: 4
  • Update frequency: every 396.0 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /700 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.01ms] Passed 4 tests

This is a short check of server-side resources used by LH SEO Meta Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.64 ▼5.96
Dashboard /wp-admin3.33 ▼0.0248.66 ▼26.36
Posts /wp-admin/edit.php3.38 ▲0.0247.46 ▼0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.17 ▼9.05
Media Library /wp-admin/upload.php3.25 ▲0.0234.38 ▼2.65

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LH SEO Meta Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.351.85 ▲0.1343.66 ▲2.93
Dashboard /wp-admin2,192 ▲185.56 ▼0.0386.91 ▼7.2735.34 ▼6.02
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0134.88 ▼4.9535.46 ▼2.88
Add New Post /wp-admin/post-new.php1,535 ▲118.19 ▼0.08632.77 ▼34.2061.69 ▼2.07
Media Library /wp-admin/upload.php1,397 ▼64.26 ▲0.07103.61 ▲5.2047.78 ▲4.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lh-seo-meta-tags/lh-seo-meta-tags.php:377

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: noindex, description, meta, seo

lh-seo-meta-tags/lh-seo-meta-tags.php 92% from 13 tests

"LH SEO Meta Tags" version 1.01's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected210 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116929210

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods318.75%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin