78% seomator

Code Review | Seomator

WordPress plugin Seomator scored 78% from 54 tests.

About plugin

  • Plugin page: seomator
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.9.2
  • First release: Aug 22, 2015
  • Latest release: Dec 28, 2017
  • Number of updates: 21
  • Update frequency: every 41.0 days
  • Top authors: seomator (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

60+ active / 2,521 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼294.96ms] Passed 4 tests

Analyzing server-side resources used by Seomator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.4358.55 ▲34.47
Dashboard /wp-admin3.45 ▲0.0436.93 ▼0.60
Posts /wp-admin/edit.php3.68 ▲0.0440.88 ▲1.77
Add New Post /wp-admin/post-new.php6.92 ▼0.0595.27 ▼1,183.60
Media Library /wp-admin/upload.php3.33 ▲0.0426.98 ▲2.61
Seomator /wp-admin/options-general.php?page=seomator-plugin3.2823.82

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
seomator_plugin_options

Browser metrics Passed 4 tests

Checking browser requirements for Seomator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲3215.98 ▲0.236.18 ▲0.352.59 ▲0.14
Dashboard /wp-admin2,883 ▲226.12 ▼0.08119.89 ▼19.80156.33 ▼6.19
Posts /wp-admin/edit.php2,690 ▼13.24 ▲0.0162.14 ▼2.42144.70 ▲0.06
Add New Post /wp-admin/post-new.php1,714 ▲4620.66 ▲2.65417.22 ▲21.38163.96 ▲9.25
Media Library /wp-admin/upload.php1,703 ▲55.54 ▼0.00144.36 ▲1.95192.16 ▲1.61
Seomator /wp-admin/options-general.php?page=seomator-plugin1,2602.4756.73127.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • seomator_plugin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seomator-plugin
    • > Notice in wp-content/plugins/seomator/seomator.php+192
    Undefined index: partnerCode

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/seomator/seomator.php:224

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: widget, seo, seo analysis, seo audit, shortcode...

seomator/seomator.php 92% from 13 tests

The entry point to "Seomator" version 2.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 351 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
There were no executable files found in this plugin220 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1179200
CSS14020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.53MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/form-small.png34.50KB12.56KB▼ 63.60%
assets/img/rpt-embed.png194.40KB78.26KB▼ 59.74%
assets/img/form-takeover.png33.25KB12.13KB▼ 63.50%
assets/img/rpt-blackout.png93.99KB31.51KB▼ 66.47%
assets/img/form-standard.png41.52KB13.66KB▼ 67.11%