80% seo-lite

Code Review | SEO Lite

WordPress plugin SEO Lite scored80%from 54 tests.

About plugin

  • Plugin page: seo-lite
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 10, 2022
  • Latest release: Mar 31, 2023
  • Number of updates: 8
  • Update frequency: every 29.3 days
  • Top authors: apedestrian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /664 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲3.02ms] Passed 4 tests

Server-side resources used by SEO Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.52 ▲6.61
Dashboard /wp-admin3.34 ▲0.0446.16 ▼0.55
Posts /wp-admin/edit.php3.40 ▲0.0447.87 ▲3.95
Add New Post /wp-admin/post-new.php5.92 ▲0.04119.06 ▲23.91
Media Library /wp-admin/upload.php3.27 ▲0.0436.50 ▲2.07
SEO Lite /wp-admin/options-general.php?page=seo-lite-options-page3.2436.71

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SEO Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲6313.36 ▼1.021.62 ▼0.3741.30 ▼3.21
Dashboard /wp-admin2,207 ▲155.84 ▲0.9598.42 ▼20.6840.13 ▼8.04
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0438.85 ▲2.1136.19 ▲4.18
Add New Post /wp-admin/post-new.php1,517 ▼2517.47 ▼0.92644.03 ▼15.6249.40 ▼12.34
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.0796.48 ▼1.6545.59 ▼0.24
SEO Lite /wp-admin/options-general.php?page=seo-lite-options-page8502.0427.1830.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin has failed uninstalling correctly, leaving 10 files (0.03MB) in the plugin directory
    • (new file) uninstall.php
    • (new file) admin/index.php
    • (new file) seo-lite.php
    • (new file) admin/styles.scss
    • (new file) README.txt
    • (new file) LICENSE.txt
    • (new file) admin/class-seo-lite-admin.php
    • (new file) admin/styles.css
    • (new file) index.php
    • (new file) admin/scripts.js
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: open graph, seo, og

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

The principal PHP file in "SEO Lite" v. 2.1.1 is loaded by WordPress automatically on each request
60 characters long description:
Adds all of the basic Open Graph meta tags to the site head.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected274 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP41934192
JavaScript14645
Sass13036
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
No PNG images were found in this plugin