73% swt-seo-helper

Code Review | SWT SEO Helper

WordPress plugin SWT SEO Helper scored73%from 54 tests.

About plugin

  • Plugin page: swt-seo-helper
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Jan 5, 2017
  • Latest release: Jan 5, 2017
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: mukeshjakhar888 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /772 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.77ms] Passed 4 tests

Analyzing server-side resources used by SWT SEO Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0226.73 ▼22.57
Dashboard /wp-admin3.36 ▲0.0645.62 ▼4.66
Posts /wp-admin/edit.php3.41 ▲0.0650.96 ▲4.60
Add New Post /wp-admin/post-new.php5.94 ▲0.0683.61 ▼4.80
Media Library /wp-admin/upload.php3.29 ▲0.0636.55 ▲0.96

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_swt_seo
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SWT SEO Helper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.27 ▼1.381.60 ▼0.2340.49 ▼2.64
Dashboard /wp-admin2,225 ▲374.84 ▼0.95114.49 ▼1.9044.52 ▲1.72
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0035.31 ▼3.7832.13 ▼1.64
Add New Post /wp-admin/post-new.php1,541 ▲1923.48 ▲0.33660.81 ▲17.9754.89 ▲3.17
Media Library /wp-admin/upload.php1,407 ▲164.24 ▲0.0697.60 ▲3.6542.27 ▼0.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_swt_seo
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/swt-seo-helper/swt-seo-helper.php:15
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/swt-seo-helper/seo_dashboard.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/swt-seo-helper/seo_dashboard.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (After installation in Plugins page.), #2 (Code generated by our plugin.), #3 (Settings page. Please add title, decription keywords and og image for home page.), #4 (Settings page. Please add title, decription and keywords for archive page.), #5 (Settings page. Please add master or common keywords and social media links.)
The official readme.txt might help

swt-seo-helper/swt-seo-helper.php 92% from 13 tests

The primary PHP file in "SWT SEO Helper" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 275 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin850 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP29326465
CSS11712385

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.75MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-5.png111.53KB44.28KB▼ 60.30%
images/screenshot-4.png305.61KB90.80KB▼ 70.29%
images/screenshot-2.png62.27KB19.13KB▼ 69.28%
images/screenshot-1.png13.59KB5.40KB▼ 60.27%
images/logo.png5.12KB2.86KB▼ 44.11%