10% ps-auto-sitemap-for-widget

Code Review | PS AUTO SITEMAP for Widget

WordPress plugin PS AUTO SITEMAP for Widget scored 10% from 54 tests.

About plugin

  • Plugin page: ps-auto-sitemap-f...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 5.9.2
  • First release: Apr 4, 2015
  • Latest release: Apr 4, 2015
  • Number of updates: 3
  • Update frequency: every 5.7 days
  • Top authors: yyano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,861 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ps-auto-sitemap-for-widget/psas-widget.php+14
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼348.55ms] Passed 4 tests

An overview of server-side resources used by PS AUTO SITEMAP for Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.684.90 ▼45.00
Dashboard /wp-admin1.86 ▼1.554.00 ▼29.65
Posts /wp-admin/edit.php1.86 ▼1.784.17 ▼55.71
Add New Post /wp-admin/post-new.php1.86 ▼5.114.05 ▼1,263.85
Media Library /wp-admin/upload.php1.86 ▼1.443.83 ▼20.86

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_psas_widget

Browser metrics Passed 4 tests

An overview of browser requirements for PS AUTO SITEMAP for Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲3916.08 ▲0.336.62 ▲0.352.40 ▲0.20
Dashboard /wp-admin2,888 ▲346.38 ▲0.07116.22 ▼16.35155.56 ▼11.13
Posts /wp-admin/edit.php2,688 ▼33.42 ▼0.1360.25 ▼3.46139.89 ▼9.23
Add New Post /wp-admin/post-new.php1,752 ▼221.32 ▼0.05427.30 ▼51.03147.79 ▼10.55
Media Library /wp-admin/upload.php1,695 ▼35.72 ▲0.01139.18 ▼12.38182.95 ▼13.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ps-auto-sitemap-for-widget/psas-widget.php+14
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_psas_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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/ps-auto-sitemap-for-widget/psas-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
3 plugin tags: sitemap, ps auto sitemap, widget

ps-auto-sitemap-for-widget/psas-widget.php 85% from 13 tests

Analyzing the main PHP file in "PS AUTO SITEMAP for Widget" version 0.1
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ps-auto-sitemap-for-widget.php" instead of "psas-widget.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1211467
PO File171126

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin