84% surbma-yoast-seo-sitemap-to-robotstxt

Code Review | Surbma | Yoast SEO Sitemap to robots.txt

WordPress plugin Surbma | Yoast SEO Sitemap to robots.txt scored84%from 54 tests.

About plugin

  • Plugin page: surbma-yoast-seo-...
  • Plugin version: 2.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Apr 8, 2023
  • Number of updates: 19
  • Update frequency: every 117.4 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /27,185 total downloads

Benchmarks

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

Analyzing server-side resources used by Surbma | Yoast SEO Sitemap to robots.txt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0038.28 ▼3.80
Dashboard /wp-admin3.35 ▲0.0150.14 ▼3.02
Posts /wp-admin/edit.php3.40 ▲0.0047.90 ▲3.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0083.04 ▼17.46
Media Library /wp-admin/upload.php3.27 ▲0.0038.72 ▲1.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Surbma | Yoast SEO Sitemap to robots.txt
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.141.62 ▼0.1437.82 ▼6.48
Dashboard /wp-admin2,198 ▲185.60 ▼0.0393.70 ▼2.1141.87 ▲6.33
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0538.46 ▼2.9737.23 ▲0.29
Add New Post /wp-admin/post-new.php1,531 ▼423.20 ▲4.83681.48 ▲26.3153.77 ▼24.70
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.0497.26 ▼6.6042.19 ▲0.20

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-yoast-seo-sitemap-to-robotstxt/surbma-yoast-seo-sitemap-to-robotstxt.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wordpress seo, yoast seo, robotstxt, multisite, xml sitemap...

surbma-yoast-seo-sitemap-to-robotstxt/surbma-yoast-seo-sitemap-to-robotstxt.php 92% from 13 tests

The main PHP script in "Surbma | Yoast SEO Sitemap to robots.txt" version 2.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181415
Markdown1103

PHP code Passed 2 tests

An overview 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.38
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin