78% seo-assistant

Code Review | Seo Assistant

WordPress plugin Seo Assistant scored78%from 54 tests.

About plugin

  • Plugin page: seo-assistant
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Feb 18, 2021
  • Latest release: Sep 14, 2022
  • Number of updates: 10
  • Update frequency: every 57.3 days
  • Top authors: csarmy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.75ms] Passed 4 tests

Server-side resources used by Seo Assistant
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1445.43 ▲5.65
Dashboard /wp-admin3.45 ▲0.1149.84 ▼13.09
Posts /wp-admin/edit.php3.57 ▲0.2151.95 ▲3.81
Add New Post /wp-admin/post-new.php6.05 ▲0.1786.13 ▼7.00
Media Library /wp-admin/upload.php3.38 ▲0.1539.04 ▲5.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Seo Assistant
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.89 ▼0.2810.24 ▲8.2744.55 ▲2.95
Dashboard /wp-admin2,214 ▲405.67 ▼0.0288.46 ▼1.4341.62 ▲2.35
Posts /wp-admin/edit.php2,119 ▲192.04 ▲0.0338.75 ▼1.4034.97 ▼2.69
Add New Post /wp-admin/post-new.php1,549 ▲1818.54 ▼5.14607.26 ▼101.4452.04 ▼0.56
Media Library /wp-admin/upload.php1,416 ▲164.28 ▲0.0398.68 ▼14.2045.94 ▼1.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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seo-assistant/public/partials/seo-assistant-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/seo-assistant/admin/partials/seo-assistant-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: "#"
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can look at the official readme.txt

seo-assistant/seo-assistant.php 92% from 13 tests

The principal PHP file in "Seo Assistant" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)

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
Everything looks great! No dangerous files found in this plugin619 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12228546577
JavaScript210239
CSS2083

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.86
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods4088.89%
▷ Protected methods00.00%
▷ Private methods511.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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