Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.37ms] Passed 4 tests
This is a short check of server-side resources used by Ayudante Model B
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.00 ▼0.88 |
Dashboard /wp-admin | 3.43 ▲0.13 | 52.16 ▼7.31 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.29 ▼5.66 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 89.38 ▼11.61 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.78 ▲1.06 |
Server storage [IO: ▲2.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ayudante Model B
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 13.74 ▼0.92 | 1.70 ▼0.27 | 38.97 ▼4.83 |
Dashboard /wp-admin | 2,222 ▲37 | 4.86 ▼1.02 | 102.22 ▼19.97 | 41.96 ▼4.74 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 1.99 ▼0.06 | 38.23 ▼0.40 | 35.51 ▲2.67 |
Add New Post /wp-admin/post-new.php | 6,203 ▲4,670 | 19.13 ▼4.05 | 864.90 ▲207.18 | 71.85 ▲19.77 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▼0.02 | 96.19 ▼5.59 | 43.76 ▲1.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ayudante-ai/ayudante-ai.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: images, image creator, artificial intelligence, machine learning
ayudante-ai/ayudante-ai.php 85% from 13 tests
The principal PHP file in "Ayudante Model B" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,790 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 193 | 540 | 971 |
JSON | 2 | 0 | 0 | 564 |
JavaScript | 3 | 11 | 20 | 204 |
CSS | 2 | 9 | 0 | 51 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 18 | 33.33% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.70% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 2.38MB with 0.84MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/imagecreation.png | 504.84KB | 498.62KB | ▼ 1.23% |
assets/images/imagecreation.png | 1,934.07KB | 600.77KB | ▼ 68.94% |