Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼12.11ms] Passed 4 tests
Analyzing server-side resources used by AI Post Generator | AutoWriter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.25 ▼0.22 | 23.59 ▼15.12 |
Dashboard /wp-admin | 3.53 ▲0.19 | 46.74 ▼14.71 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 50.11 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 88.72 ▼17.11 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 43.27 ▲5.58 |
Training model /wp-admin/admin.php?page=autowriter_training_model | 3.43 | 34.37 |
Academy /wp-admin/admin.php?page=autowriter_academy | 3.43 | 33.99 |
Settings /wp-admin/admin.php?page=autowriter_settings | 3.43 | 41.40 |
New Post /wp-admin/admin.php?page=ai_post_generator | 3.45 | 35.46 |
Upgrade Plan /wp-admin/admin.php?page=autowriter_upgrade_plan | 3.44 | 290.97 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for AI Post Generator | AutoWriter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,324 ▲578 | 12.84 ▼1.81 | 4.08 ▲2.39 | 45.56 ▲5.03 |
Dashboard /wp-admin | 2,372 ▲180 | 5.84 ▲0.91 | 97.66 ▼6.58 | 96.79 ▲53.29 |
Posts /wp-admin/edit.php | 2,261 ▲172 | 2.17 ▲0.15 | 38.11 ▲0.20 | 40.42 ▲5.67 |
Add New Post /wp-admin/post-new.php | 1,779 ▲251 | 22.62 ▼0.52 | 651.58 ▼30.44 | 35.29 ▼15.13 |
Media Library /wp-admin/upload.php | 1,555 ▲167 | 4.27 ▲0.04 | 102.01 ▼7.60 | 67.32 ▲21.87 |
Training model /wp-admin/admin.php?page=autowriter_training_model | 1,398 | 2.69 | 53.68 | 32.47 |
Academy /wp-admin/admin.php?page=autowriter_academy | 1,600 | 13.06 | 245.30 | 29.04 |
Settings /wp-admin/admin.php?page=autowriter_settings | 1,253 | 2.35 | 30.88 | 32.72 |
New Post /wp-admin/admin.php?page=ai_post_generator | 2,128 | 3.86 | 76.53 | 27.61 |
Upgrade Plan /wp-admin/admin.php?page=autowriter_upgrade_plan | 1,472 | 7.59 | 305.22 | 32.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(AI_POST_GENERATOR_PLUGIN_DIR/functions.php): failed to open stream: No such file or directory in wp-content/plugins/ai-post-generator/inc/insert-head.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ai-post-generator/index.php:137
- > PHP Warning
Use of undefined constant AI_POST_GENERATOR_PLUGIN_DIR - assumed 'AI_POST_GENERATOR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-post-generator/inc/insert-head.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'AI_POST_GENERATOR_PLUGIN_DIR/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/ai-post-generator/inc/insert-head.php on line 7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=autowriter_upgrade_plan
- > Javascript (severe) in unknown
https://js.stripe.com/v3/ 0:395020 Uncaught t: Live Stripe.js integrations must use HTTPS. For mo…ation: https://stripe.com/docs/security/guide#tls
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in ai-post-generator/assets to your readme.txt
ai-post-generator/index.php 92% from 13 tests
The entry point to "AI Post Generator | AutoWriter" version 3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ai-post-generator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,481 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 1,823 | 101 | 1,879 |
JavaScript | 11 | 3,079 | 104 | 1,799 |
CSS | 7 | 1,798 | 29 | 778 |
SVG | 1 | 0 | 1 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 39 | 97.50% |
▷ Anonymous functions | 1 | 2.50% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772x250.png | 62.51KB | 20.48KB | ▼ 67.23% |