68% seo-monster

Code Review | Seo Monster

WordPress plugin Seo Monster scored68%from 54 tests.

About plugin

  • Plugin page: seo-monster
  • Plugin version: 3.3.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 17, 2020
  • Latest release: Oct 19, 2020
  • Number of updates: 15
  • Update frequency: every 4.3 days
  • Top authors: edsteep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /790 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Seo Monster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.99 ▼0.16
Dashboard /wp-admin3.35 ▲0.0446.90 ▲0.06
Posts /wp-admin/edit.php3.46 ▲0.1144.51 ▼5.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.32 ▼10.84
Media Library /wp-admin/upload.php3.27 ▲0.0433.12 ▼0.88
410 Tool /wp-admin/admin.php?page=seo-monster-4103.3233.76
Integration /wp-admin/admin.php?page=seo-monster-integration3.2834.55
Seo Monster /wp-admin/admin.php?page=seo-monster3.3029.31
XML Sitemaps /wp-admin/admin.php?page=seo-monster-sitemaps3.2932.30

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables
wp_seomonster_410
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
seomonster_410_options_version
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Seo Monster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.27 ▼0.861.85 ▲0.3447.46 ▲3.70
Dashboard /wp-admin2,236 ▲454.90 ▲0.04102.56 ▼3.1780.33 ▲37.97
Posts /wp-admin/edit.php2,119 ▲272.01 ▼0.1540.13 ▼4.0035.60 ▼1.79
Add New Post /wp-admin/post-new.php1,693 ▲16022.53 ▼0.66731.57 ▲56.4255.81 ▼1.49
Media Library /wp-admin/upload.php1,421 ▲334.21 ▼0.01115.63 ▲8.0744.92 ▼1.95
410 Tool /wp-admin/admin.php?page=seo-monster-4101,3134.9879.4580.89
Integration /wp-admin/admin.php?page=seo-monster-integration9964.4460.9047.53
Seo Monster /wp-admin/admin.php?page=seo-monster2,4425.28107.0159.59
XML Sitemaps /wp-admin/admin.php?page=seo-monster-sitemaps9884.4852.9535.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_seomonster_410
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • seomonster_410_options_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-monster-sitemaps
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/seo-monster/index.php+190
    Trying to access array offset on value of type bool
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-monster-sitemaps
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/seo-monster/index.php+190
    array_filter() expects parameter 1 to be array, null given
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-monster-sitemaps
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/seo-monster/index.php+511
    Undefined index: saved
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-monster-sitemaps
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/seo-monster/index.php+394
    Undefined variable: urls
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-monster-sitemaps
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/seo-monster/index.php+394
    Invalid argument supplied for foreach()
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-monster-sitemaps
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/seo-monster/index.php+502
    Undefined variable: class
    • > GET request to /wp-admin/admin.php?page=seo-monster
    • > Notice in wp-content/plugins/seo-monster/tpl/disp.php+29
    Undefined variable: update
    • > GET request to /wp-admin/admin.php?page=seo-monster
    • > Warning in wp-content/plugins/seo-monster/index.php+439
    count(): Parameter must be an array or an object that implements Countable

SRP 50% from 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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'seomonster_410' not found in wp-content/plugins/seo-monster/tpl/410pages.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-monster/tpl/css/style.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-monster/tpl/css/style.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'seo_monster_wp_ui' not found in wp-content/plugins/seo-monster/tpl/disp.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'seo_monster_wp_ui' not found in wp-content/plugins/seo-monster/tpl/integration.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in seo-monster/assets to your readme.txt
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

seo-monster/index.php 92% from 13 tests

"Seo Monster" version 3.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-monster.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,140 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP11232571,692
JavaScript52502251,403
CSS321145

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity26.20
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods818.18%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/omega.png11.86KB9.68KB▼ 18.39%
images/icon2.png0.61KB0.78KB0.00%
images/scaleserp.png1.64KB1.19KB▼ 27.45%
images/Monster-ICO.png1.64KB1.19KB▼ 27.48%
images/speedlinks.png7.58KB3.37KB▼ 55.49%