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.14MB] [CPU: ▼1.14ms] Passed 4 tests
Server-side resources used by Imajinn - Magical AI Image Generation like DALL·E
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.09 ▲2.59 |
Dashboard /wp-admin | 3.45 ▲0.14 | 49.88 ▲4.81 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 45.34 ▼4.58 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 84.46 ▼1.71 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.14 ▼0.85 |
Imajinn AI /wp-admin/upload.php?page=imajinn-ai | 3.36 | 35.67 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Imajinn - Magical AI Image Generation like DALL·E
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.44 ▲0.08 | 1.82 ▲0.26 | 44.33 ▲8.51 |
Dashboard /wp-admin | 2,202 ▲24 | 5.62 ▼0.10 | 85.94 ▼27.79 | 42.79 ▲1.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.04 | 35.71 ▼3.27 | 32.04 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,842 | 27.91 ▲5.03 | 797.06 ▲119.34 | 62.38 ▲6.78 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.06 | 94.78 ▼18.88 | 41.01 ▼7.91 |
Imajinn AI /wp-admin/upload.php?page=imajinn-ai | 1,029 | 11.98 | 277.60 | 40.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imajinn-ai/imajinn-ai.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7, #8 in imajinn-ai/assets to your readme.txt
imajinn-ai/imajinn-ai.php 92% from 13 tests
Analyzing the main PHP file in "Imajinn - Magical AI Image Generation like DALL·E" version 1.5.4
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 294 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected482 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 126 | 117 | 424 |
JSON | 1 | 0 | 0 | 34 |
CSS | 2 | 0 | 0 | 15 |
JavaScript | 2 | 0 | 7 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected