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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.71 ▼4.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.23 ▼6.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.50 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.81 ▼10.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.17 ▼1.26 | 1.62 ▼0.77 | 43.58 ▼2.54 |
Dashboard /wp-admin | 2,224 ▲33 | 5.87 ▼0.02 | 97.88 ▼6.40 | 80.18 ▲35.22 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▼0.11 | 35.62 ▲1.01 | 32.85 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 17.55 ▼0.05 | 679.52 ▲2.11 | 58.35 ▲9.19 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.22 ▲0.07 | 97.48 ▼0.14 | 70.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 0 | 32 | 2,620 |
PHP | 10 | 104 | 207 | 467 |
LESS | 2 | 15 | 20 | 292 |
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 code | 0.28 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/interface/elementor-pro-icon.png | 35.65KB | 23.67KB | ▼ 33.59% |
images/logo.png | 18.20KB | 4.46KB | ▼ 75.51% |
images/typography.png | 8.21KB | 3.29KB | ▼ 59.94% |
images/interface/funnelmentals-pro-icon.png | 30.55KB | 16.33KB | ▼ 46.55% |
images/interface/web-disrupt-icon.png | 14.46KB | 6.19KB | ▼ 57.19% |