84% sitemap-simple

Code Review | Sitemap simple

WordPress plugin Sitemap simple scored84%from 54 tests.

About plugin

  • Plugin page: sitemap-simple
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 10, 2016
  • Latest release: Sep 1, 2020
  • Number of updates: 15
  • Update frequency: every 90.5 days
  • Top authors: Abhay Raj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,872 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.56ms] Passed 4 tests

An overview of server-side resources used by Sitemap simple
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.53 ▼3.36
Dashboard /wp-admin3.32 ▼0.0351.46 ▼11.75
Posts /wp-admin/edit.php3.37 ▲0.0150.51 ▼0.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.65 ▼7.05
Media Library /wp-admin/upload.php3.24 ▲0.0137.96 ▲3.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Sitemap simple
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.111.88 ▲0.2743.72 ▲0.91
Dashboard /wp-admin2,195 ▲175.65 ▼0.06101.46 ▼5.7844.08 ▼0.25
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.1634.29 ▼0.2738.21 ▲3.68
Add New Post /wp-admin/post-new.php1,531 ▼422.82 ▲4.67659.95 ▲13.9863.87 ▼2.17
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.06101.16 ▲1.3748.15 ▲2.85

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitemap-simple/sitemap-simple.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Sitemap Simple.) image not found
You can take inspiration from this readme.txt

sitemap-simple/sitemap-simple.php Passed 13 tests

This is the main PHP file of "Sitemap simple" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
This plugin will create a Sitemap for pages. Use the shortcode "[sitemap_simple]".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121143

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.52
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png15.08KB4.88KB▼ 67.63%