Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.87ms] Passed 4 tests
Analyzing server-side resources used by Post Saint: ChatGPT, GPT4, DALL-E, Stable Diffusion, Pexels, Dezgo AI Text & Image Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.52 ▲3.75 |
Dashboard /wp-admin | 3.54 ▲0.20 | 47.45 ▼12.03 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 50.60 ▲5.31 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 97.10 ▲1.43 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.73 ▲3.35 |
Post Saint /wp-admin/admin.php?page=post-saint/view-log.php | 3.45 | 30.32 |
Settings /wp-admin/admin.php?page=post-saint/settings.php | 3.75 | 44.34 |
Generate Images /wp-admin/admin.php?page=post-saint/images-new.php | 3.56 | 37.14 |
Logs /wp-admin/admin.php?page=post-saint/logs.php | 3.54 | 45.74 |
Support /wp-admin/admin.php?page=post-saint/support.php | 3.43 | 30.93 |
Server storage [IO: ▲0.75MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 123 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_postsaint_single_post_text_logs |
wp_postsaint_dezgo_image_logs |
wp_postsaint_dalle_image_logs |
wp_postsaint_stabilityai_image_logs |
New WordPress options |
---|
widget_recent-comments |
postsaint_version |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
postsaint_dezgo_models |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Post Saint: ChatGPT, GPT4, DALL-E, Stable Diffusion, Pexels, Dezgo AI Text & Image Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.27 ▼1.11 | 4.90 ▲3.08 | 42.64 ▲5.22 |
Dashboard /wp-admin | 2,240 ▲51 | 5.81 ▼0.24 | 109.23 ▼11.96 | 40.72 ▼6.31 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.05 ▲0.06 | 37.29 ▼6.48 | 33.05 ▼2.74 |
Add New Post /wp-admin/post-new.php | 7,749 ▲6,230 | 26.15 ▲2.85 | 901.37 ▲259.07 | 75.92 ▲17.32 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.16 ▼0.05 | 96.93 ▼7.77 | 43.87 ▲0.36 |
Post Saint /wp-admin/admin.php?page=post-saint/view-log.php | 810 | 2.02 | 26.89 | 28.79 |
Settings /wp-admin/admin.php?page=post-saint/settings.php | 2,805 | 2.06 | 36.16 | 38.89 |
Generate Images /wp-admin/admin.php?page=post-saint/images-new.php | 1,891 | 1.89 | 29.20 | 32.34 |
Logs /wp-admin/admin.php?page=post-saint/logs.php | 938 | 2.07 | 22.74 | 34.42 |
Support /wp-admin/admin.php?page=post-saint/support.php | 823 | 2.05 | 22.99 | 25.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_postsaint_dalle_image_logs
- wp_postsaint_dezgo_image_logs
- wp_postsaint_single_post_text_logs
- wp_postsaint_stabilityai_image_logs
- Zombie WordPress options detected upon uninstall: 8 options
- postsaint_version
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- postsaint_dezgo_models
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=post-saint/view-log.php
- > Notice in wp-content/plugins/post-saint/view-log.php+12
Undefined index: id
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/post-saint/support.php
- 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-saint/post-saint.php:15
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/post-saint/lib/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
- > PHP Notice
Undefined variable: writing_style in wp-content/plugins/post-saint/inc/functions/prepare_prompt.php on line 20
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/post-saint/lib/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/post-saint/lib/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/post-saint/images-new.php:16
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/post-saint/lib/action-scheduler/classes/ActionScheduler_OptionLock.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/post-saint/lib/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/post-saint/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
- > PHP Notice
Undefined variable: writing_style in wp-content/plugins/post-saint/inc/functions/prepare_prompt.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: openai, dalle, ai, stable diffusion, gpt4...
post-saint/post-saint.php 85% from 13 tests
"Post Saint: ChatGPT, GPT4, DALL-E, Stable Diffusion, Pexels, Dezgo AI Text & Image Generator" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 360 characters long)
- Plugin Name: A shorter plugin name is better (currently 92 characters long instead of max. 70)
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
Everything looks great! No dangerous files found in this plugin11,638 lines of code in 109 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 2,973 | 5,527 | 10,209 |
JavaScript | 5 | 296 | 218 | 842 |
CSS | 2 | 87 | 70 | 497 |
Markdown | 2 | 37 | 0 | 90 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 15 | 19.48% |
▷ Concrete classes | 62 | 80.52% |
▷ Final classes | 0 | 0.00% |
Methods | 642 | |
▷ Static methods | 79 | 12.31% |
▷ Public methods | 481 | 74.92% |
▷ Protected methods | 136 | 21.18% |
▷ Private methods | 25 | 3.89% |
Functions | 48 | |
▷ Named functions | 40 | 83.33% |
▷ Anonymous functions | 8 | 16.67% |
Constants | 39 | |
▷ Global constants | 3 | 7.69% |
▷ Class constants | 36 | 92.31% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.27KB | 0.29KB | 0.00% |
images/prev.png | 1.33KB | 1.59KB | 0.00% |
images/postsaint-logo.png | 8.27KB | 3.55KB | ▼ 57.06% |
images/next.png | 1.32KB | 1.58KB | 0.00% |