10% wp-ds-blog-map

Code Review | WP DS Blog Map

WordPress plugin WP DS Blog Map scored 10% from 54 tests.

About plugin

  • Plugin page: wp-ds-blog-map
  • Plugin version: 3.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.8.0
  • WordPress version: 5.8.1
  • First release: May 6, 2009
  • Latest release: Dec 22, 2013
  • Number of updates: 17
  • Update frequency: every 99.5 days
  • Top authors: DiamondSteel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active / 29,203 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-ds-blog-map/wp-ds-blogmap.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; dsblogmap has a deprecated constructor

Server metrics [RAM: ▼1.67MB] [CPU: ▼190.92ms] Passed 4 tests

Server-side resources used by WP DS Blog Map
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.96 ▼0.765.45 ▼18.79
Dashboard /wp-admin1.98 ▼1.0810.65 ▼33.58
Posts /wp-admin/edit.php1.98 ▼1.135.90 ▼45.67
Add New Post /wp-admin/post-new.php1.98 ▼3.456.07 ▼645.56
Media Library /wp-admin/upload.php1.98 ▼1.035.81 ▼38.86
DS Blog Map /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php1.989.74

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
wp_ds_blogmap_array

Browser metrics Passed 4 tests

A check of browser resources used by WP DS Blog Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,716 ▲12016.03 ▼0.0412.50 ▲2.6750.76 ▼3.43
Dashboard /wp-admin2,978 ▲416.06 ▼0.03153.74 ▼4.05117.62 ▼7.22
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0165.87 ▼6.8093.54 ▲6.89
Add New Post /wp-admin/post-new.php1,686 ▼1,95718.74 ▼1.70397.45 ▼85.07123.16 ▲0.52
Media Library /wp-admin/upload.php1,812 ▲25.02 ▲0.02155.83 ▲1.38134.77 ▲6.02
DS Blog Map /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php1,4202.1763.7490.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-ds-blog-map/wp-ds-blogmap.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; dsblogmap has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • wp_ds_blogmap_array

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php
    • > Deprecated in wp-content/plugins/wp-ds-blog-map/wp-ds-blogmap.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; dsblogmap has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php
    • > User notice in wp-includes/functions.php+5663
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
    • > GET request to /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php
    • > User deprecated in wp-includes/functions.php+5505
    load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-ds-blog-map/ajax.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ds-blog-map/wp-ds-blogmap.php:20
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ds-blog-map/wp-ds-blogmap.php on line 20

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wp-ds-blog-map/wp-ds-blogmap.php
    • > Network (severe)
    https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: archive, posts, sitemap, seo, post

wp-ds-blog-map/wp-ds-blogmap.php 92% from 13 tests

The main PHP file in "WP DS Blog Map" ver. 3.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-ds-blog-map.php" instead of "wp-ds-blogmap.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 detected483 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP294131382
PO File1346787
CSS10714

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin