84% site-sitemap

Code Review | Site Sitemap

WordPress plugin Site Sitemap scored84%from 54 tests.

About plugin

  • Plugin page: site-sitemap
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Feb 28, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jartes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /990 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.67ms] Passed 4 tests

This is a short check of server-side resources used by Site Sitemap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.75 ▼7.92
Dashboard /wp-admin3.31 ▲0.0141.26 ▼4.15
Posts /wp-admin/edit.php3.36 ▲0.0146.96 ▼2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.33 ▼16.49
Media Library /wp-admin/upload.php3.24 ▲0.0151.11 ▲16.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Site Sitemap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.76 ▼0.991.61 ▼0.0737.33 ▼3.88
Dashboard /wp-admin2,206 ▲185.91 ▲1.05113.96 ▲1.8543.67 ▲2.32
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0439.70 ▼6.1434.43 ▼16.37
Add New Post /wp-admin/post-new.php1,533 ▼018.30 ▼4.92613.16 ▼54.6448.19 ▼6.30
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.02101.77 ▲1.3242.69 ▲0.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/site-sitemap/site-sitemap.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: sitemap

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

The primary PHP file in "Site Sitemap" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)

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
Good job! No executable or dangerous file extensions detected50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1191538
CSS12012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin