79% rc-site-map

Code Review | RC Site Map Plugin

WordPress plugin RC Site Map Plugin scored79%from 54 tests.

About plugin

  • Plugin page: rc-site-map
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Sep 4, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 25
  • Update frequency: every 49.8 days
  • Top authors: rickcurran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /892 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.89ms] Passed 4 tests

Server-side resources used by RC Site Map Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.61 ▼2.84
Dashboard /wp-admin3.33 ▲0.0243.95 ▼4.52
Posts /wp-admin/edit.php3.38 ▲0.0248.61 ▼1.81
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.74 ▼14.37
Media Library /wp-admin/upload.php3.25 ▲0.0233.09 ▼0.51
RC Site Map /wp-admin/options-general.php?page=rc_site_map3.2329.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RC Site Map Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼0.871.63 ▲0.0140.18 ▲2.26
Dashboard /wp-admin2,210 ▲255.94 ▲0.09108.05 ▲2.0441.93 ▼1.49
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0140.05 ▼0.3836.23 ▲0.70
Add New Post /wp-admin/post-new.php1,540 ▼223.15 ▲4.63645.86 ▲20.0650.79 ▼20.50
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.1296.95 ▲2.0544.64 ▲2.16
RC Site Map /wp-admin/options-general.php?page=rc_site_map1,1002.0223.2638.09

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/rc-site-map/rc-site-map-description.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-site-map/rc-site-map.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: sitemap

rc-site-map/rc-site-map.php Passed 13 tests

"RC Site Map Plugin" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
132 characters long description:
This plugin adds a shortcode that will list a site map or list of a particular type of post such as page, post or custom post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26624159

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected