90% visual-sitemap

Code Review | Visual Sitemap

WordPress plugin Visual Sitemap scored90%from 54 tests.

About plugin

  • Plugin page: visual-sitemap
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 17, 2014
  • Latest release: Dec 26, 2017
  • Number of updates: 7
  • Update frequency: every 175.3 days
  • Top authors: brianmiyaji (71.43%)ThemeBoy (42.86%)

Code review

54 tests

User reviews

28 reviews

Install metrics

800+ active /12,038 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.39ms] Passed 4 tests

An overview of server-side resources used by Visual Sitemap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.67 ▼1.47
Dashboard /wp-admin3.36 ▲0.0550.71 ▼4.23
Posts /wp-admin/edit.php3.41 ▲0.0551.90 ▼1.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.92 ▲5.07
Media Library /wp-admin/upload.php3.28 ▲0.0540.10 ▲1.92

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Visual Sitemap
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.72 ▲0.371.65 ▼0.4042.75 ▼1.26
Dashboard /wp-admin2,214 ▲375.62 ▲0.0491.30 ▼0.4840.12 ▼7.09
Posts /wp-admin/edit.php2,113 ▲162.16 ▲0.1339.11 ▲1.7534.61 ▼1.38
Add New Post /wp-admin/post-new.php1,539 ▲1322.85 ▼0.21610.14 ▼51.7961.07 ▲11.74
Media Library /wp-admin/upload.php1,410 ▲104.17 ▼0.0397.90 ▼2.6741.77 ▼1.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

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

The main PHP script in "Visual Sitemap" version 0.9 is automatically included on every request by WordPress
78 characters long description:
Display an interactive visual sitemap of pages, tags, and categories in admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin423 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS12424210
PHP13048171
PO File14931,05740
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/slickmap/vertical-line.png0.15KB0.10KB▼ 31.58%
assets/images/slickmap/L3-li-top.png2.95KB0.12KB▼ 96.03%
assets/images/slickmap/L3-center.png0.32KB0.12KB▼ 63.50%
assets/images/slickmap/L1-center.png0.29KB0.14KB▼ 53.33%
assets/images/slickmap/L1-right.png0.29KB0.13KB▼ 56.27%