Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲1.24ms] Passed 4 tests
Analyzing server-side resources used by 10Web AI Assistant – AI content writing assistant
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 44.83 ▲1.76 |
Dashboard /wp-admin | 3.88 ▲0.53 | 54.65 ▼9.98 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 56.98 ▲4.89 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 105.90 ▲8.30 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 45.28 ▲9.61 |
Server storage [IO: ▲8.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
taa_version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for 10Web AI Assistant – AI content writing assistant
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲41 | 14.46 ▲0.10 | 1.71 ▼0.18 | 42.23 ▲3.38 |
Dashboard /wp-admin | 2,221 ▲44 | 5.60 ▲0.08 | 86.37 ▼6.84 | 67.73 ▲26.17 |
Posts /wp-admin/edit.php | 2,141 ▲44 | 2.02 ▲0.06 | 38.09 ▼2.26 | 34.91 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,717 ▲191 | 22.23 ▼1.22 | 722.78 ▲41.07 | 63.92 ▲7.65 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.16 ▼0.15 | 101.11 ▼20.68 | 82.26 ▲32.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- taa_version
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AIAssistantTenWeb\\Library' not found in wp-content/plugins/ai-assistant-by-10web/views/logs.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ai-assistant-by-10web/config.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Automatic_Upgrader_Skin' not found in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ai-assistant-by-10web/views/customer_support.php:6
- > PHP Fatal error
Uncaught Error: Class 'Tenweb_Authorization\\Product' not found in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/InstalledPlugin.php:7
- > PHP Fatal error
Uncaught Error: Class 'AIAssistantTenWeb\\Utils' not found in wp-content/plugins/ai-assistant-by-10web/views/setting.php:2
- > PHP Warning
include_once(ABSPATH/wp-admin/includes/class-wp-upgrader-skins.php): failed to open stream: No such file or directory in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php on line 27
- > PHP Warning
include_once(): Failed opening 'ABSPATH/wp-admin/includes/class-wp-upgrader-skins.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Tenweb_Authorization\\Product' not found in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/InstalledTheme.php:7
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 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
3 plugin tags: ai assistant, content, gutenberg
ai-assistant-by-10web/ai-assistant-by-10web.php 77% from 13 tests
The main PHP script in "10Web AI Assistant – AI content writing assistant" version 1.0.18 is automatically included on every request by WordPress
The following require your attention:
- Git Repository: A Git repository was detected inside this plugin
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin7,053 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,033 | 615 | 4,643 |
CSS | 2 | 112 | 2 | 1,121 |
JavaScript | 4 | 162 | 314 | 1,024 |
SVG | 22 | 0 | 0 | 205 |
JSON | 2 | 0 | 0 | 59 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 30.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 82 | 35.96% |
▷ Public methods | 194 | 85.09% |
▷ Protected methods | 6 | 2.63% |
▷ Private methods | 28 | 12.28% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 114 | |
▷ Global constants | 104 | 91.23% |
▷ Class constants | 10 | 8.77% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/how_to_use.png | 17.09KB | 16.95KB | ▼ 0.85% |
assets/images/waving_hand.png | 0.91KB | 0.96KB | 0.00% |
assets/images/info_icon_black.png | 0.27KB | 0.19KB | ▼ 30.15% |
assets/images/step_icon.png | 0.61KB | 0.32KB | ▼ 46.70% |
assets/images/welcome_image.png | 143.01KB | 63.10KB | ▼ 55.88% |