78% seo-that-matters

Code Review | SEO that Matters

WordPress plugin SEO that Matters scored78%from 54 tests.

About plugin

  • Plugin page: seo-that-matters
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 8, 2023
  • Latest release: Oct 14, 2023
  • Number of updates: 3
  • Update frequency: every 10.3 days
  • Top authors: aryadhiratara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.20ms] Passed 4 tests

Server-side resources used by SEO that Matters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.47 ▼1.44
Dashboard /wp-admin3.33 ▲0.0245.17 ▼0.58
Posts /wp-admin/edit.php3.38 ▲0.0247.47 ▲1.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.02 ▼0.23
Media Library /wp-admin/upload.php3.25 ▲0.0239.49 ▲5.26
SEO that Matters /wp-admin/tools.php?page=seotm3.4042.89

Server storage [IO: ▲0.20MB] [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: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SEO that Matters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.69 ▲0.411.58 ▼0.0446.12 ▲5.78
Dashboard /wp-admin2,199 ▲185.59 ▼0.2191.02 ▼10.4540.00 ▲3.24
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0239.45 ▲2.1337.29 ▲4.59
Add New Post /wp-admin/post-new.php1,531 ▲322.65 ▼0.31695.02 ▼16.2358.44 ▲3.36
Media Library /wp-admin/upload.php1,404 ▲14.18 ▼0.03120.18 ▲19.4952.13 ▲11.53
SEO that Matters /wp-admin/tools.php?page=seotm2,6273.6392.1764.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/seo-that-matters/view/admin/index.php
    • > /wp-content/plugins/seo-that-matters/includes/Functions.php
    • > /wp-content/plugins/seo-that-matters/assets/index.php
    • > /wp-content/plugins/seo-that-matters/view/admin/parts/sidebar.php
    • > /wp-content/plugins/seo-that-matters/view/index.php
    • > /wp-content/plugins/seo-that-matters/index.php
    • > /wp-content/plugins/seo-that-matters/includes/classes/index.php
    • > /wp-content/plugins/seo-that-matters/includes/index.php
    • > /wp-content/plugins/seo-that-matters/assets/css/index.php
    • > /wp-content/plugins/seo-that-matters/assets/js/index.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-that-matters/view/admin/parts/partials/sitemap-robots/robots.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeoThatMatters\\seotm_instance() in wp-content/plugins/seo-that-matters/view/admin/parts/sitemap-robots.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-that-matters/view/admin/parts/partials/meta-schema/schema.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-that-matters/view/admin/parts/import.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeoThatMatters\\seotm_instance() in wp-content/plugins/seo-that-matters/view/admin/parts/meta-schema.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-that-matters/view/admin/parts/partials/misc/misc.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-that-matters/view/admin/parts/partials/meta-schema/meta.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeoThatMatters\\seotm_instance() in wp-content/plugins/seo-that-matters/view/admin/parts/misc.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/seo-that-matters/view/admin/parts/partials/sitemap-robots/sitemap.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

seo-that-matters/dhiratara.php 85% from 13 tests

This is the main PHP file of "SEO that Matters" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-that-matters.php" instead of "dhiratara.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,374 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP246992553,064
CSS115819985
XSLT170205
JavaScript32013120

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity38.67
▷ Minimum class complexity4.00
▷ Maximum class complexity177.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods107
▷ Static methods43.74%
▷ Public methods7973.83%
▷ Protected methods00.00%
▷ Private methods2826.17%
Functions18
▷ Named functions1372.22%
▷ Anonymous functions527.78%
Constants13
▷ Global constants1184.62%
▷ Class constants215.38%
▷ Public constants2100.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