Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/aipress/source/helpers/scripts.php+7
Undefined index: page
Server metrics [RAM: ▼1.97MB] [CPU: ▼56.64ms] Passed 4 tests
Analyzing server-side resources used by AIPress - OpenAI, ChatGPT Content Creator, Image Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.52 ▼35.62 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.23 ▼54.37 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.85 ▼39.96 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.79 ▼96.60 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.86 ▼26.75 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for AIPress - OpenAI, ChatGPT Content Creator, Image Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲118 | 15.11 ▲0.54 | 1.89 ▲0.02 | 44.43 ▲0.94 |
Dashboard /wp-admin | 2,253 ▲68 | 6.62 ▲0.72 | 114.50 ▲9.36 | 81.13 ▲41.04 |
Posts /wp-admin/edit.php | 2,304 ▲215 | 3.25 ▲1.25 | 47.02 ▲9.46 | 33.81 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,725 ▲191 | 24.47 ▲1.34 | 770.06 ▲105.02 | 37.82 ▼12.73 |
Media Library /wp-admin/upload.php | 1,600 ▲212 | 5.04 ▲0.78 | 108.33 ▼3.44 | 69.52 ▲21.80 |
Post Creator /wp-admin/admin.php?page=aipress#/postcreator | 1,472 | 12.91 | 701.72 | 65.21 |
Image Generator /wp-admin/admin.php?page=aipress#/imagegenerator | 1,591 | 10.29 | 709.24 | 53.19 |
Dashboard /wp-admin/admin.php?page=aipress#/dashboard | 1,782 | 8.64 | 226.88 | 49.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/aipress/source/helpers/scripts.php+7
Undefined index: page
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(AIPRESS_ROOTsource/helpers/apis/settings.php): failed to open stream: No such file or directory in wp-content/plugins/aipress/source/helpers/apis.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/aipress/source/helpers/apis/general.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_AiPress_General_Functions' not found in wp-content/plugins/aipress/source/helpers/apis/settings.php:2
- > PHP Warning
Use of undefined constant AIPRESS_ROOT - assumed 'AIPRESS_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/aipress/source/helpers/apis.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aipress/source/helpers/scripts.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_AiPress_Settings_Rest_Route' not found in wp-content/plugins/aipress/source/helpers/apis.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aipress/source/helpers/styles.php:7
- > PHP Warning
include(AIPRESS_ROOTsource/helpers/apis/images.php): failed to open stream: No such file or directory in wp-content/plugins/aipress/source/helpers/apis.php on line 5
- > PHP Warning
Use of undefined constant AIPRESS_ROOT - assumed 'AIPRESS_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/aipress/source/helpers/apis.php on line 5
- > PHP Warning
include(): Failed opening 'AIPRESS_ROOTsource/helpers/apis/images.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/aipress/source/helpers/apis.php on line 5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=aipress#/postcreator
- > Console-api (warning) in wp-content/plugins/aipress/source/cpanel/cpanel.js?ver=1.2.2+1:605376
widget-toolbar-no-items" Object "\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-widget-toolbar-no-items
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #4, #5 in aipress/assets to your readme.txt
aipress/aipress.php Passed 13 tests
This is the main PHP file of "AIPress - OpenAI, ChatGPT Content Creator, Image Generator" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
This is a plugin that uses OpenAI's GPT-3 and chatGPT models to generate AI-powered content on your WordPress site.
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
There were no executable files found in this plugin1,837 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 103 | 52 | 1,285 |
PHP | 10 | 103 | 36 | 550 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.78% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
source/assets/bg.png | 7.02KB | 2.78KB | ▼ 60.41% |
source/cpanel/assets/header.png | 51.01KB | 23.04KB | ▼ 54.84% |
source/cpanel/assets/logo-alone.png | 2.37KB | 1.75KB | ▼ 26.03% |
source/assets/bg2.png | 6.88KB | 2.71KB | ▼ 60.67% |
source/gutenberg/sidebar/build/images/emptry.a7c542ab.png | 5.02KB | 1.52KB | ▼ 69.72% |