78% ps-auto-sitemap

Code Review | PS Auto Sitemap

WordPress plugin PS Auto Sitemap scored 78% from 54 tests.

About plugin

  • Plugin page: ps-auto-sitemap
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.1-4.2.2
  • WordPress version: 5.9.2
  • First release: Dec 29, 2008
  • Latest release: Jul 1, 2015
  • Number of updates: 36
  • Update frequency: every 108.2 days
  • Top authors: jim912 (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

200,000+ active / 857,473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼298.59ms] Passed 4 tests

A check of server-side resources used by PS Auto Sitemap
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1865.77 ▲5.09
Dashboard /wp-admin3.52 ▲0.1233.48 ▲0.04
Posts /wp-admin/edit.php3.76 ▲0.1253.52 ▲14.54
Add New Post /wp-admin/post-new.php6.99 ▲0.0292.86 ▼1,200.64
Media Library /wp-admin/upload.php3.41 ▲0.1128.09 ▲1.15

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 99 new files
Database: no new tables, 1 new option
New WordPress options
ps_sitemap

Browser metrics Passed 4 tests

This is an overview of browser requirements for PS Auto Sitemap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.20 ▲0.415.45 ▼0.622.15 ▼0.73
Dashboard /wp-admin2,897 ▲436.16 ▼0.09120.59 ▼20.95163.00 ▼66.03
Posts /wp-admin/edit.php2,693 ▲23.23 ▼0.0068.29 ▲3.31178.94 ▼5.93
Add New Post /wp-admin/post-new.php1,675 ▼6721.80 ▲0.42445.18 ▼32.05210.45 ▲41.38
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.02143.58 ▲5.33194.83 ▲2.59
PS Auto Sitemap /wp-admin/ps_auto_sitemap.php260.940.0840.37

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • ps_sitemap

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix 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/ps-auto-sitemap/ps_auto_sitemap.php:36

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/ps_auto_sitemap.php
    • > Network (severe)
    wp-admin/ps_auto_sitemap.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
5 plugin tags: sitemap, seo, cms, page, post

ps-auto-sitemap/ps_auto_sitemap.php 92% from 13 tests

The principal PHP file in "PS Auto Sitemap" v. 1.1.9 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ps-auto-sitemap.php" instead of "ps_auto_sitemap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,737 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS1415814907
PHP1798511
PO File2107109239
HTML115380

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity129.00
▷ Minimum class complexity129.00
▷ Maximum class complexity129.00
Average method complexity7.40
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
73 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/document/ico_folder.png0.21KB0.17KB▼ 15.24%
images/document/ico_post_list.png0.17KB0.13KB▼ 26.01%
images/music/ico_g_clef.png0.68KB0.56KB▼ 17.50%
images/under_score/line_solid_d_gray.png0.12KB0.08KB▼ 34.13%
images/arrows/ico_post_list.png0.17KB0.13KB▼ 26.01%