68% walktheweb

Code Review | WalkTheWeb

WordPress plugin WalkTheWeb scored68%from 54 tests.

About plugin

  • Plugin page: walktheweb
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 13, 2018
  • Latest release: Apr 1, 2023
  • Number of updates: 21
  • Update frequency: every 86.4 days
  • Top authors: adishno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,542 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.64ms] Passed 4 tests

Analyzing server-side resources used by WalkTheWeb
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2241.19 ▲2.21
Dashboard /wp-admin3.53 ▲0.2345.80 ▼5.90
Posts /wp-admin/edit.php3.65 ▲0.2944.26 ▼1.34
Add New Post /wp-admin/post-new.php6.13 ▲0.2481.00 ▼11.45
Media Library /wp-admin/upload.php3.45 ▲0.2235.37 ▲0.15
Add 3D Host /wp-admin/admin.php?page=walktheweb_add3dhost3.4138.06
Dashboard /wp-admin/admin.php?page=walktheweb_dashboard3.4031.04
WalkTheWeb 3D Host /wp-admin/admin.php?page=walktheweb_wtw3dhost3.4326.52
Marketplace Downloads /wp-admin/admin.php?page=walktheweb_downloadcommunity3.4331.57
3D Hosts /wp-admin/admin.php?page=walktheweb_3dhosts3.4333.05
About WalkTheWeb /wp-admin/admin.php?page=walktheweb_about3.4233.56
Add 3D Website /wp-admin/admin.php?page=walktheweb_add3dwebsite3.4238.59
3D Websites /wp-admin/admin.php?page=walktheweb_3dwebsites3.4332.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 9 new options
New WordPress options
walktheweb_version
db_upgraded
can_compress_scripts
theysaidso_admin_options
walktheweb_activated
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for WalkTheWeb
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13214.63 ▲0.492.10 ▲0.3149.64 ▲5.27
Dashboard /wp-admin2,240 ▲605.64 ▲0.0182.43 ▼6.4231.26 ▼5.79
Posts /wp-admin/edit.php2,157 ▲542.00 ▼0.0236.61 ▲0.4343.80 ▲8.23
Add New Post /wp-admin/post-new.php1,573 ▲4723.28 ▲0.08653.62 ▼46.1362.41 ▲10.69
Media Library /wp-admin/upload.php1,445 ▲454.20 ▼0.0291.25 ▼17.3938.05 ▼9.85
Add 3D Host /wp-admin/admin.php?page=walktheweb_add3dhost9052.1822.3236.80
Dashboard /wp-admin/admin.php?page=walktheweb_dashboard7261.516.4019.40
WalkTheWeb 3D Host /wp-admin/admin.php?page=walktheweb_wtw3dhost7251.516.3615.13
Marketplace Downloads /wp-admin/admin.php?page=walktheweb_downloadcommunity9452.0024.9126.09
3D Hosts /wp-admin/admin.php?page=walktheweb_3dhosts8982.3222.9324.58
About WalkTheWeb /wp-admin/admin.php?page=walktheweb_about1,50813.05266.4059.13
Add 3D Website /wp-admin/admin.php?page=walktheweb_add3dwebsite8931.8929.9227.84
3D Websites /wp-admin/admin.php?page=walktheweb_3dwebsites8872.1222.6624.99

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
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/walktheweb/uninstall.php+27
    Invalid argument supplied for foreach()
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=walktheweb_add3dhost
    • > Notice in wp-content/plugins/walktheweb/pages/walktheweb_add3dhost.php+44
    Undefined variable: zhostid
    • > GET request to /wp-admin/admin.php?page=walktheweb_dashboard
    • > Error in wp-content/plugins/walktheweb/classes/class-wtw-forms.php+123
    Uncaught Error: Call to undefined function wc_rand_hash() in wp-content/plugins/walktheweb/classes/class-wtw-forms.php:123
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): WTW_Forms->walktheweb_dashboard_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=walktheweb_wtw3dhost
    • > Error in wp-content/plugins/walktheweb/pages/walktheweb_wtw3dhost.php+18
    Uncaught Error: Call to undefined method WTW_Functions::getDDLWooKeyDescriptions() in wp-content/plugins/walktheweb/pages/walktheweb_wtw3dhost.php:18
    Stack trace:
    #0 wp-content/plugins/walktheweb/classes/class-wtw-forms.php(342): require_once()
    #1 wp-includes/class-wp-hook.php(310): WTW_Forms->walktheweb_wtw3dhost_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

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
  • 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function getHosts() on null in wp-content/plugins/walktheweb/pages/walktheweb_dashboard.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function getDDLWooKeyDescriptions() on null in wp-content/plugins/walktheweb/pages/walktheweb_wtw3dhost.php:18
    • > PHP Warning
      Use of undefined constant WTW_PLUGIN_URL - assumed 'WTW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/walktheweb/pages/walktheweb_downloadavatar.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/walktheweb/pages/walktheweb_downloadavatar.php:16
    • > PHP Warning
      Use of undefined constant WTW_PLUGIN_URL - assumed 'WTW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/walktheweb/pages/walktheweb_downloadcommunity.php on line 16
    • > PHP Notice
      Trying to get property 'functions' of non-object in wp-content/plugins/walktheweb/pages/walktheweb_3dhosts.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/walktheweb/pages/walktheweb_add3dwebsite.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/walktheweb/pages/walktheweb_downloadthing.php:16
    • > PHP Warning
      Use of undefined constant WTW_PLUGIN_URL - assumed 'WTW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/walktheweb/pages/walktheweb_add3dwebsite.php on line 12
    • > PHP Notice
      Trying to get property 'functions' of non-object in wp-content/plugins/walktheweb/pages/walktheweb_dashboard.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (47 tag instead of maximum 10)
Please take inspiration from this readme.txt

walktheweb/walktheweb.php 92% from 13 tests

"WalkTheWeb" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 295 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,462 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP221781722,494
JavaScript2128241,890
CSS1501,078

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity54.67
▷ Minimum class complexity42.00
▷ Maximum class complexity66.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods50
▷ Static methods36.00%
▷ Public methods4284.00%
▷ Protected methods12.00%
▷ Private methods714.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 23.07MB with 15.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/demo14.png1,625.55KB514.70KB▼ 68.34%
assets/images/col1.png0.82KB0.26KB▼ 68.14%
assets/images/col4set.png0.65KB0.25KB▼ 62.03%
assets/images/demo2.png1,074.48KB330.58KB▼ 69.23%
assets/images/demo4.png1,594.10KB546.17KB▼ 65.74%