Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.36MB] [CPU: ▲36.79ms] 50% from 4 tests
Server-side resources used by AI Image Generator - Experience the future of image creation with AI
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 2,560.56ms on /wp-admin/upload.php?page=ai-wp-cgntvdnmc)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.36MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.18 ▲5.71 | 77.41 ▲31.77 |
Dashboard /wp-admin | 9.20 ▲5.89 | 91.66 ▲38.73 |
Posts /wp-admin/edit.php | 9.20 ▲5.83 | 86.98 ▲34.65 |
Add New Post /wp-admin/post-new.php | 9.92 ▲4.02 | 144.22 ▲56.97 |
Media Library /wp-admin/upload.php | 9.20 ▲5.96 | 76.36 ▲42.01 |
AI Image Generator /wp-admin/upload.php?page=ai-wp-cgntvdnmc | 9.20 | 2,560.56 |
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius | 9.20 | 66.37 |
Server storage [IO: ▲5.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 225 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
fs_accounts |
can_compress_scripts |
widget_theysaidso_widget |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for AI Image Generator - Experience the future of image creation with AI
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲215 | 14.45 ▲0.08 | 2.03 ▲0.17 | 33.19 ▼7.18 |
Dashboard /wp-admin | 2,357 ▲183 | 6.15 ▲0.54 | 119.28 ▲24.53 | 43.00 ▲1.92 |
Posts /wp-admin/edit.php | 2,289 ▲189 | 3.34 ▲1.40 | 54.00 ▲16.46 | 33.14 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.04 ▼5.69 | 616.53 ▼94.02 | 46.89 ▼7.18 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.07 ▼0.07 | 89.84 ▼23.09 | 46.06 ▼4.14 |
AI Image Generator /wp-admin/upload.php?page=ai-wp-cgntvdnmc | 1,153 | 4.15 | 87.37 | 91.71 |
Freemius Debug [v.2.5.8] /wp-admin/admin.php?page=freemius | 1,267 | 3.13 | 39.49 | 27.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/ai-image-generator/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- fs_active_plugins
- widget_recent-comments
- fs_accounts
- fs_debug_mode
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/upload.php?page=ai-wp-cgntvdnmc
- > Javascript (severe) in unknown
/wp-content/plugins/ai-image-generator/dist/ai-wp-cgntvdnmc-react.js?ver=1.0.3 1:130206 Uncaught Error: Minified React error #299; visit https://reactjs.o… for full errors and additional helpful warnings.
Optimizations
Plugin configuration 96% 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
5 plugin tags: image generator, ai image, ai, openai, dall e
ai-image-generator/ai-image-generator.php 92% from 13 tests
"AI Image Generator - Experience the future of image creation with AI" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected36,095 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,307 | 18,201 | 34,339 |
Markdown | 3 | 321 | 0 | 758 |
CSS | 14 | 120 | 37 | 632 |
JavaScript | 6 | 39 | 89 | 224 |
JSON | 4 | 0 | 0 | 141 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 74.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,392 | |
▷ Static methods | 237 | 17.03% |
▷ Public methods | 995 | 71.48% |
▷ Protected methods | 17 | 1.22% |
▷ Private methods | 380 | 27.30% |
Functions | 98 | |
▷ Named functions | 97 | 98.98% |
▷ Anonymous functions | 1 | 1.02% |
Constants | 153 | |
▷ Global constants | 99 | 64.71% |
▷ Class constants | 54 | 35.29% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.48MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/ai-image-generator.png | 151.51KB | 41.66KB | ▼ 72.51% |
admin/assets/Icon-Setting.png | 13.17KB | 5.58KB | ▼ 57.64% |
admin/assets/opaque.png | 0.10KB | 0.09KB | ▼ 5.00% |
admin/assets/Icon-Image-Variations.png | 8.01KB | 6.44KB | ▼ 19.58% |