83% liquid-seo-inspector

Code Review | LIQUID SEO Inspector

WordPress plugin LIQUID SEO Inspector scored83%from 54 tests.

About plugin

  • Plugin page: liquid-seo-inspector
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 8
  • Update frequency: every 63.8 days
  • Top authors: lqd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /409 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▲976.40ms] 50% from 4 tests

This is a short check of server-side resources used by LIQUID SEO Inspector
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,305.22ms on /wp-admin/options-general.php?page=liquid-seo-inspector)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 976.40ms on /wp-admin/options-general.php?page=liquid-seo-inspector)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.26 ▼2.99
Dashboard /wp-admin3.41 ▲0.061,336.78 ▲1,273.09
Posts /wp-admin/edit.php3.46 ▲0.101,500.10 ▲1,447.84
Add New Post /wp-admin/post-new.php5.93 ▲0.041,444.63 ▲1,346.44
Media Library /wp-admin/upload.php3.27 ▲0.041,325.37 ▲1,289.05
LIQUID SEO Inspector /wp-admin/options-general.php?page=liquid-seo-inspector3.241,305.22

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for LIQUID SEO Inspector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,154 ▲39214.08 ▼0.3219.52 ▲17.7664.76 ▲21.50
Dashboard /wp-admin2,202 ▲255.62 ▼0.0586.32 ▼16.7935.23 ▼9.09
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0533.81 ▼6.2234.19 ▼0.82
Add New Post /wp-admin/post-new.php1,529 ▲323.57 ▲0.10682.33 ▼22.8056.56 ▼4.98
Media Library /wp-admin/upload.php1,401 ▲14.15 ▼0.10100.00 ▲1.3444.10 ▼0.19
LIQUID SEO Inspector /wp-admin/options-general.php?page=liquid-seo-inspector8202.0224.2225.11

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/liquid-seo-inspector/liquid-seo-inspector.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

liquid-seo-inspector/liquid-seo-inspector.php Passed 13 tests

This is the main PHP file of "LIQUID SEO Inspector" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Easily inspect metadata within web pages to visualize and find issues.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected523 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1117211
CSS104144
PHP11933132
PO File1509835
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin