78% seotudy

Code Review | Seotudy

WordPress plugin Seotudy scored 78% from 54 tests.

About plugin

  • Plugin page: seotudy
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.8-4.9.8
  • WordPress version: 5.8.1
  • First release: May 28, 2018
  • Latest release: Nov 8, 2018
  • Number of updates: 29
  • Update frequency: every 5.7 days
  • Top authors: webtures (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,113 total downloads

Benchmarks

Plugin footprint 82% 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 gracefully, with no errors

Server metrics [RAM: ▲0.34MB] [CPU: ▼180.64ms] Passed 4 tests

Analyzing server-side resources used by Seotudy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.37 ▲0.5337.84 ▲9.49
Dashboard /wp-admin3.54 ▲0.4840.02 ▼1.10
Posts /wp-admin/edit.php3.58 ▲0.4740.14 ▲6.36
Add New Post /wp-admin/post-new.php5.40 ▼0.0464.90 ▼734.53
Media Library /wp-admin/upload.php3.44 ▲0.4431.33 ▲6.70
Backlink List /wp-admin/admin.php?page=seotudy-backlink-list-page3.3728.69
Title & Desc /wp-admin/admin.php?page=seotudy-title-desc3.4133.81
Redirects /wp-admin/admin.php?page=seotudy-redirects-page3.3730.88
Settings /wp-admin/admin.php?page=seotudy-settings3.4132.25

Server storage [IO: ▲2.87MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • The plugin illegally modified 1 file (0.06KB) outside of "wp-content/plugins/seotudy/" and "wp-content/uploads/"
    • (new file) robots.txt
Filesystem: 60 new files
Database: 1 new table, 4 new options
New tables
seotudy_links
New WordPress options
seotudy_autoSefName
seotudy_wpjson
seotudy_autoAlt
seotudy_titleAndDescActive

Browser metrics Passed 4 tests

Checking browser requirements for Seotudy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,874 ▲27316.02 ▲0.0112.05 ▲5.5074.20 ▼0.87
Dashboard /wp-admin2,975 ▲826.17 ▲0.03121.92 ▼8.88193.70 ▲16.66
Posts /wp-admin/edit.php2,785 ▲423.15 ▼0.0864.79 ▼0.29166.21 ▲25.06
Add New Post /wp-admin/post-new.php2,489 ▼1,20915.77 ▼3.05402.90 ▼46.48180.38 ▲16.95
Media Library /wp-admin/upload.php1,794 ▲425.55 ▲0.01129.89 ▼21.77224.33 ▲27.51
Backlink List /wp-admin/admin.php?page=seotudy-backlink-list-page1,2722.4457.35130.77
Title & Desc /wp-admin/admin.php?page=seotudy-title-desc1,9832.4357.38181.05
Redirects /wp-admin/admin.php?page=seotudy-redirects-page1,3692.4155.38141.63
Settings /wp-admin/admin.php?page=seotudy-settings1,5472.5453.85173.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • seotudy_links

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seotudy/admin/partials/seotudy-admin-display.php
    • > /wp-content/plugins/seotudy/public/partials/seotudy-public-display.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seotudy/includes/class-seotudy-table-generator.php on line 4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seotudy/admin/partials/seotudy-setting.php:16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seotudy/admin/partials/seotudy-redirects-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/seotudy/admin/partials/seotudy-error-page.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/seotudy/includes/class-seotudy-table-generator.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/seotudy/admin/partials/seotudy-seo-settings-meta-box.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seotudy/admin/partials/seotudy-backlink-list-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function strip_shortcodes() in wp-content/plugins/seotudy/admin/partials/seotudy-tag-density-meta-box.php:4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/seotudy/includes/class-seotudy-table-generator.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/seotudy/admin/partials/seotudy-auto_h_tag-meta-box.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

seotudy/seotudy.php Passed 13 tests

Analyzing the main PHP file in "Seotudy" version 2.0.2
21 characters long description:
All SEO Settings Tool

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 plugin15,187 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,1141,2138,896
SVG3003,927
PHP245011,0391,731
CSS65885633

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods81
▷ Static methods22.47%
▷ Public methods7086.42%
▷ Protected methods00.00%
▷ Private methods1113.58%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png2.23KB0.71KB▼ 68.27%
admin/img/seotudy-logo.png3.31KB3.39KB0.00%