84% grapetrees-sitemap

Code Review | SiteMaps

WordPress plugin SiteMaps scored84%from 54 tests.

About plugin

  • Plugin page: grapetrees-sitemap
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 27, 2018
  • Latest release: Mar 27, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: grapetree (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by SiteMaps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.64 ▼2.19
Dashboard /wp-admin3.31 ▼0.0347.08 ▼17.42
Posts /wp-admin/edit.php3.36 ▲0.0149.92 ▲2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.98 ▼8.27
Media Library /wp-admin/upload.php3.24 ▲0.0139.41 ▼2.31

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SiteMaps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.72 ▲0.162.06 ▼0.0140.01 ▼3.08
Dashboard /wp-admin2,198 ▲215.61 ▲0.0893.49 ▼0.7039.25 ▼0.62
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0039.44 ▼0.4737.29 ▲1.44
Add New Post /wp-admin/post-new.php1,528 ▼423.08 ▼0.19681.00 ▲54.4753.03 ▼0.21
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.01106.13 ▼4.5244.95 ▲1.56

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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/grapetrees-sitemap/grapetrees-sitemap.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: html sitemap

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

The main file in "SiteMaps" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
21 characters long description:
Display Html Sitemaps

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
No dangerous file extensions were detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
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
No PNG images were found in this plugin