Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼295.92ms] Passed 4 tests
Server-side resources used by AnyMind Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 61.10 ▲12.31 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.52 ▼1.20 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 38.86 ▼5.26 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.76 ▼1,174.77 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.70 ▼2.45 |
AnyMind Widget /wp-admin/options-general.php?page=AnyMind-Widget | 3.28 | 22.57 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for AnyMind Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,867 ▲113 | 16.69 ▲0.94 | 17.06 ▲11.14 | 2.50 ▼0.02 |
Dashboard /wp-admin | 2,895 ▲34 | 6.16 ▼0.00 | 115.26 ▼19.68 | 161.73 ▼0.23 |
Posts /wp-admin/edit.php | 2,698 ▲13 | 3.24 ▲0.01 | 65.06 ▼9.43 | 141.54 ▼116.04 |
Add New Post /wp-admin/post-new.php | 1,666 ▲5 | 16.10 ▼0.12 | 402.63 ▼31.73 | 159.04 ▲6.41 |
Media Library /wp-admin/upload.php | 1,702 ▲4 | 5.51 ▼0.03 | 141.10 ▲4.92 | 204.20 ▲12.36 |
AnyMind Widget /wp-admin/options-general.php?page=AnyMind-Widget | 1,065 | 2.49 | 56.65 | 127.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/anymind-widget/admin-panel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/anymind-widget/anymind-plugin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/anymind-widget/anymind-widget-id.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: audio, widget, chat, video, sdk
anymind-widget/anymind-plugin.php 92% from 13 tests
The primary PHP file in "AnyMind Widget" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("anymind-widget.php" instead of "anymind-plugin.php")
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 plugin125 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 17 | 22 | 76 |
CSS | 1 | 6 | 0 | 35 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin