83% vp-sitemap

Code Review | VP Sitemap

WordPress plugin VP Sitemap scored83%from 54 tests.

About plugin

  • Plugin page: vp-sitemap
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Jun 7, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: Maruf Arafat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by VP Sitemap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.20 ▼2.76
Dashboard /wp-admin3.32 ▲0.0143.47 ▼7.06
Posts /wp-admin/edit.php3.37 ▲0.0146.21 ▼3.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.03 ▼18.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.28 ▲1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for VP Sitemap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.121.87 ▼0.0142.90 ▼9.00
Dashboard /wp-admin2,206 ▲545.83 ▲0.27115.11 ▲14.8151.57 ▲6.89
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0439.55 ▲1.3735.56 ▲3.69
Add New Post /wp-admin/post-new.php1,546 ▲3218.28 ▲0.66584.05 ▼112.1865.12 ▲12.26
Media Library /wp-admin/upload.php1,382 ▼64.26 ▲0.02101.82 ▼10.3544.41 ▼4.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/vp-sitemap/functions.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tested up to: Invalid plugin version format
  • Contributors: Plugin contributors not specified
The official readme.txt might help

vp-sitemap/functions.php 92% from 13 tests

The primary PHP file in "VP Sitemap" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vp-sitemap.php" instead of "functions.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
No dangerous file extensions were detected66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP120766

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin