78% web-disrupt-wp-assistant

Code Review | Web Disrupt's WP Assistant

WordPress plugin Web Disrupt's WP Assistant scored78%from 54 tests.

About plugin

  • Plugin page: web-disrupt-wp-as...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 23, 2018
  • Latest release: Oct 16, 2018
  • Number of updates: 14
  • Update frequency: every 19.1 days
  • Top authors: therealwebdisrupt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Web Disrupt's WP Assistant
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.71 ▼4.08
Dashboard /wp-admin3.31 ▲0.0144.23 ▼6.96
Posts /wp-admin/edit.php3.36 ▲0.0148.50 ▲0.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.81 ▼10.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.11 ▲1.90

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Web Disrupt's WP Assistant
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.17 ▼1.261.62 ▼0.7743.58 ▼2.54
Dashboard /wp-admin2,224 ▲335.87 ▼0.0297.88 ▼6.4080.18 ▲35.22
Posts /wp-admin/edit.php2,104 ▲152.05 ▼0.1135.62 ▲1.0132.85 ▼3.82
Add New Post /wp-admin/post-new.php1,527 ▲1317.55 ▼0.05679.52 ▲2.1158.35 ▲9.19
Media Library /wp-admin/upload.php1,406 ▲214.22 ▲0.0797.48 ▼0.1470.87 ▲27.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/web-disrupt-wp-assistant/templates/settings.php
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_content() in wp-content/plugins/web-disrupt-wp-assistant/templates/disrupt-one/templates/content-standard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web-disrupt-wp-assistant/templates/disrupt-one/functions.php:10
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/web-disrupt-wp-assistant/templates/settings.php on line 89
    • > PHP Notice
      Undefined variable: premium_sidebar in wp-content/plugins/web-disrupt-wp-assistant/templates/settings.php on line 73
    • > PHP Notice
      Undefined variable: version in wp-content/plugins/web-disrupt-wp-assistant/templates/settings.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/web-disrupt-wp-assistant/templates/disrupt-one/footer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/web-disrupt-wp-assistant/templates/disrupt-one/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/web-disrupt-wp-assistant/web-disrupt-wd-assistant.php:100
    • > PHP Notice
      Undefined variable: typography in wp-content/plugins/web-disrupt-wp-assistant/templates/settings.php on line 22
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/web-disrupt-wp-assistant/templates/settings.php on line 73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

web-disrupt-wp-assistant/web-disrupt-wd-assistant.php 92% from 13 tests

"Web Disrupt's WP Assistant" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("web-disrupt-wp-assistant.php" instead of "web-disrupt-wd-assistant.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin6,050 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS40322,620
PHP10104207467
LESS21520292

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/interface/elementor-pro-icon.png35.65KB23.67KB▼ 33.59%
images/logo.png18.20KB4.46KB▼ 75.51%
images/typography.png8.21KB3.29KB▼ 59.94%
images/interface/funnelmentals-pro-icon.png30.55KB16.33KB▼ 46.55%
images/interface/web-disrupt-icon.png14.46KB6.19KB▼ 57.19%