10% all-in-one-sitemap-generator

Code Review | All In One Sitemap Generator

WordPress plugin All In One Sitemap Generator scored10%from 54 tests.

About plugin

  • Plugin page: all-in-one-sitema...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2018
  • Latest release: Jul 13, 2021
  • Number of updates: 17
  • Update frequency: every 103.5 days
  • Top authors: nipungepriya25 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,959 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/all-in-one-sitemap-generator/all-in-one-sitemap-generator.php+27
    Undefined variable: aiositemap_root_file

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.78ms] Passed 4 tests

A check of server-side resources used by All In One Sitemap Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.48 ▼9.11
Dashboard /wp-admin3.34 ▲0.0351.34 ▲0.38
Posts /wp-admin/edit.php3.39 ▲0.0342.54 ▼4.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.26 ▲4.13
Media Library /wp-admin/upload.php3.26 ▲0.0335.68 ▼2.31

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for All In One Sitemap Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.42 ▲0.051.59 ▼0.3340.70 ▼7.93
Dashboard /wp-admin2,222 ▲345.81 ▲0.95106.90 ▼10.8440.02 ▼3.97
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0434.13 ▼4.6136.56 ▲0.16
Add New Post /wp-admin/post-new.php1,555 ▲2118.01 ▼4.97635.74 ▼62.4554.38 ▼1.63
Media Library /wp-admin/upload.php1,404 ▲134.19 ▼0.2195.12 ▼3.2744.70 ▲0.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/all-in-one-sitemap-generator/all-in-one-sitemap-generator.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/all-in-one-sitemap-generator/dashboard_sitemap.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were no plugin tags found

all-in-one-sitemap-generator/all-in-one-sitemap-generator.php 92% from 13 tests

This is the main PHP file of "All In One Sitemap Generator" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24022221
PO File14424

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin