Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▲3.18ms] Passed 4 tests
A check of server-side resources used by Sage AI Content Writer | OpenAI GPT-4 Article, Landing Page, WooCommerce AI & Image Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 41.68 ▼0.90 |
Dashboard /wp-admin | 3.77 ▲0.46 | 52.72 ▲2.56 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 62.27 ▲16.06 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 88.43 ▲1.34 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 43.49 ▲9.71 |
Landing Pages Generator /wp-admin/admin.php?page=wp_ai_content_gen_landing_page | 3.62 | 39.94 |
Sage AI Writer /wp-admin/admin.php?page=wp-ai-content-gen-settings | 3.62 | 39.01 |
Bulk Content Generator /wp-admin/admin.php?page=wp_ai_content_gen_bulk | 3.62 | 36.80 |
Support /wp-admin/admin.php?page=wp_ai_content_gen_support | 3.62 | 36.33 |
Prompts /wp-admin/admin.php?page=ai-content-writer-templates | 3.62 | 39.14 |
Server storage [IO: ▲3.45MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
wp_ai_content_gen_settings |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
sage_ai_reviews_installed_on |
Browser metrics Passed 4 tests
Sage AI Content Writer | OpenAI GPT-4 Article, Landing Page, WooCommerce AI & Image Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲192 | 24.41 ▲10.11 | 1.63 ▼0.34 | 38.78 ▼6.38 |
Dashboard /wp-admin | 2,388 ▲211 | 14.64 ▲9.02 | 314.21 ▲214.75 | 45.15 ▼1.48 |
Posts /wp-admin/edit.php | 2,339 ▲239 | 12.00 ▲9.98 | 109.54 ▲68.55 | 31.73 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,588 ▲62 | 23.82 ▲0.83 | 539.06 ▼115.21 | 38.84 ▼9.33 |
Media Library /wp-admin/upload.php | 1,656 ▲253 | 14.52 ▲10.33 | 141.11 ▲44.88 | 41.28 ▼0.95 |
Landing Pages Generator /wp-admin/admin.php?page=wp_ai_content_gen_landing_page | 1,364 | 13.50 | 155.11 | 37.42 |
Sage AI Writer /wp-admin/admin.php?page=wp-ai-content-gen-settings | 1,441 | 12.52 | 132.77 | 26.12 |
Bulk Content Generator /wp-admin/admin.php?page=wp_ai_content_gen_bulk | 1,203 | 13.46 | 178.94 | 25.99 |
Support /wp-admin/admin.php?page=wp_ai_content_gen_support | 1,040 | 11.69 | 98.46 | 23.41 |
Prompts /wp-admin/admin.php?page=ai-content-writer-templates | 1,278 | 12.33 | 125.80 | 30.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_ai_content_gen_settings
- widget_recent-comments
- sage_ai_reviews_installed_on
- can_compress_scripts
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/ai-content-generator/inc/admin/bulk-pages-generator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generator/inc/admin/upload-to-media-library.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generator/inc/wpaicontent-block.php:8
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/ai-content-generator/inc/admin/bulk-pages-generator.php on line 3
- > PHP Warning
require(WP_SAGE_AI_DIR/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ai-content-generator/inc/fetch/callDallE.php on line 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-content-generator/inc/admin/bulk-pages-generator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generator/inc/admin/class-wp-ai-core-gen-admin-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generator/inc/queue/generate-post-structure.php:3
- > PHP Fatal error
require(): Failed opening required 'WP_SAGE_AI_DIR/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ai-content-generator/inc/fetch/callOpenAI.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generator/inc/fetch/callPixabay.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp_ai_content_gen_bulk
- > Console-api (severe) in unknown
/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:53544 ReferenceError: Button is not definedat /wp-content/plugins/ai-content-generator/build/index.js?ver=6.3.1:1:195163at o (/wp-content/plugins/ai-content-generator/build/index.js?ver=6.3.1:1:196233)at /wp-content/plugins/ai-content-generator/build/index.js?ver=6.3.1:1:200430at /wp-includes/js/dist/components.min.js?ver=f914d11cd76135f7269e:55:2491at wt (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:47637)at dr (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:54880)at js (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:122633)at wl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88659)at bl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88587)at yl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88450)
- > GET request to /wp-admin/admin.php?page=wp_ai_content_gen_bulk
- > Javascript (severe) in unknown
/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:32518 Uncaught ReferenceError: Button is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #3, #4, #5, #6 in ai-content-generator/assets to your readme.txt
ai-content-generator/wpaicore.php 92% from 13 tests
"Sage AI Content Writer | OpenAI GPT-4 Article, Landing Page, WooCommerce AI & Image Generator" version 2.2.5'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("ai-content-generator.php" instead of "wpaicore.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,030 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 994 | 1,006 | 2,972 |
Markdown | 3 | 322 | 0 | 760 |
JavaScript | 3 | 9 | 4 | 144 |
JSON | 4 | 0 | 0 | 137 |
CSS | 3 | 0 | 0 | 15 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 51 | 37.23% |
▷ Public methods | 132 | 96.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.65% |
Functions | 46 | |
▷ Named functions | 44 | 95.65% |
▷ Anonymous functions | 2 | 4.35% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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
14 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/thunder.f289d66f.png | 0.40KB | 0.45KB | 0.00% |
build/images/check-mark.73329fb0.png | 3.67KB | 1.60KB | ▼ 56.30% |
build/images/lightning-bolt.54200623.png | 0.43KB | 0.46KB | 0.00% |
build/images/step.3547222f.png | 0.90KB | 1.12KB | 0.00% |
build/images/money.364d77c6.png | 8.33KB | 4.33KB | ▼ 48.08% |