83% seo-sitemap-generator-with-fetch-urls

Code Review | SEO Sitemap Generator with fetch urls

WordPress plugin SEO Sitemap Generator with fetch urls scored83%from 54 tests.

About plugin

  • Plugin page: seo-sitemap-gener...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2016
  • Latest release: Sep 18, 2016
  • Number of updates: 5
  • Update frequency: every 13.8 days
  • Top authors: vwediting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /7,312 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼14.34ms] Passed 4 tests

Analyzing server-side resources used by SEO Sitemap Generator with fetch urls
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.98 ▼1.81
Dashboard /wp-admin3.37 ▲0.0345.37 ▼23.77
Posts /wp-admin/edit.php3.41 ▲0.0546.08 ▼3.54
Add New Post /wp-admin/post-new.php6.06 ▲0.1874.90 ▼28.23
Media Library /wp-admin/upload.php3.31 ▲0.0835.47 ▲1.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Sitemap Generator with fetch urls
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.25 ▼0.491.68 ▼0.0644.16 ▲0.29
Dashboard /wp-admin2,210 ▲365.59 ▼0.0588.01 ▼10.4365.06 ▲22.83
Posts /wp-admin/edit.php2,115 ▲151.97 ▲0.0234.59 ▼1.4833.24 ▼2.90
Add New Post /wp-admin/post-new.php1,553 ▲2723.46 ▼0.24687.37 ▼0.3354.77 ▲0.28
Media Library /wp-admin/upload.php1,418 ▲154.21 ▲0.0492.79 ▼16.9175.75 ▲27.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-sitemap-generator-with-fetch-urls/index.php:19

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 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #1 (Screenshots)
The official readme.txt is a good inspiration

seo-sitemap-generator-with-fetch-urls/index.php 92% from 13 tests

The entry point to "SEO Sitemap Generator with fetch urls" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("seo-sitemap-generator-with-fetch-urls.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin70 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36970

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
files/site_map.png0.54KB0.58KB0.00%