74% simple-sitemap

Code Review | Simple Sitemap - Create a Responsive HTML Sitemap

WordPress plugin Simple Sitemap - Create a Responsive HTML Sitemap scored 74% from 54 tests.

About plugin

  • Plugin page: simple-sitemap
  • Plugin version: 3.5.10
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2010
  • Latest release: Jul 26, 2023
  • Number of updates: 147
  • Update frequency: every 32.8 days
  • Top authors: dgwyer (100%)

Code review

54 tests

User reviews

66 reviews

Install metrics

90,000+ active / 1,390,961 total downloads

Benchmarks

Plugin footprint 65% 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.68MB] [CPU: ▲1.41ms] Passed 4 tests

An overview of server-side resources used by Simple Sitemap - Create a Responsive HTML Sitemap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9945.55 ▲3.95
Dashboard /wp-admin3.99 ▲0.6849.80 ▲3.38
Posts /wp-admin/edit.php4.04 ▲0.6848.94 ▲3.46
Add New Post /wp-admin/post-new.php6.55 ▲0.6686.30 ▼5.16
Media Library /wp-admin/upload.php3.91 ▲0.6840.37 ▲6.66
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.1236.79

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 259 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
fs_accounts
simple_sitemap_options
fs_active_plugins
db_upgraded
widget_theysaidso_widget
widget_recent-posts
fs_debug_mode
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Sitemap - Create a Responsive HTML Sitemap
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15014.83 ▲0.451.82 ▲0.1632.06 ▼21.75
Dashboard /wp-admin2,244 ▲565.89 ▲0.97112.28 ▲5.7344.10 ▲2.76
Posts /wp-admin/edit.php2,127 ▲382.03 ▲0.0240.56 ▲3.8239.37 ▲6.34
Add New Post /wp-admin/post-new.php6,441 ▲4,92221.28 ▼1.54908.92 ▲264.2454.81 ▲0.64
Media Library /wp-admin/upload.php1,426 ▲384.21 ▼0.0298.77 ▲0.2342.68 ▼4.57
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0851.6923.7029.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/simple-sitemap/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • fs_active_plugins
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • simple_sitemap_options
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-comments
    • fs_debug_mode
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/simple-sitemap/shared/class-wpgo-walker-page.php:10

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: seo sitemap, html sitemap, responsive sitemap, html, sitemap

simple-sitemap/simple-sitemap.php 92% from 13 tests

The entry point to "Simple Sitemap - Create a Responsive HTML Sitemap" version 3.5.10 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

Code Analysis 97% from 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
There were no executable files found in this plugin36,758 lines of code in 187 files:
LanguageFilesBlank linesComment linesLines of code
PHP1448,54818,25035,537
CSS1811594474
Sass15618304
JavaScript86285300
SVG150181
JSON10062

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity63.40
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes75
▷ Abstract classes22.67%
▷ Concrete classes7397.33%
▷ Final classes00.00%
Methods1,364
▷ Static methods22316.35%
▷ Public methods97571.48%
▷ Protected methods171.25%
▷ Private methods37227.27%
Functions101
▷ Named functions9998.02%
▷ Anonymous functions21.98%
Constants146
▷ Global constants9967.81%
▷ Class constants4732.19%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 0.37MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
shared/images/content-censor-thumb.png8.82KB3.89KB▼ 55.92%
lib/assets/images/new-features/new-sort-options.png15.92KB16.27KB0.00%
api/assets/images/content-censor-thumb.png8.82KB3.89KB▼ 55.92%