Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼4.02ms] Passed 4 tests
An overview of server-side resources used by AI Generated Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.59 ▲0.86 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.07 ▼0.20 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.58 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.07 ▼20.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.43 ▲5.73 |
Generate Post /wp-admin/admin.php?page=aignpost-generate | 3.25 | 33.40 |
Settings /wp-admin/admin.php?page=aignpost-settings | 3.21 | 32.84 |
AIGN Post /wp-admin/admin.php?page=aignpost-dashboard | 3.21 | 31.98 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
AI Generated Post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 14.45 ▲0.08 | 1.95 ▲0.36 | 44.83 ▼5.66 |
Dashboard /wp-admin | 2,230 ▲42 | 5.86 ▲0.86 | 98.30 ▼8.99 | 38.05 ▼2.40 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.04 | 34.47 ▲0.25 | 32.26 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 17.52 ▲0.02 | 668.59 ▲53.93 | 56.25 ▲14.02 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.21 ▲0.02 | 93.87 ▼11.29 | 41.88 ▼5.38 |
Generate Post /wp-admin/admin.php?page=aignpost-generate | 1,742 | 5.64 | 116.35 | 129.61 |
Settings /wp-admin/admin.php?page=aignpost-settings | 829 | 2.06 | 24.60 | 32.56 |
AIGN Post /wp-admin/admin.php?page=aignpost-dashboard | 857 | 2.03 | 22.29 | 33.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Orhanerday\\OpenAi\\OpenAi' not found in wp-content/plugins/ai-generated-post/vendor/orhanerday/open-ai/tests/OpenAiTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Finder' not found in wp-content/plugins/ai-generated-post/vendor/orhanerday/open-ai/.php-cs-fixer.dist.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Settings Page), #2 (Generate Page)
ai-generated-post/ai-generated-post.php Passed 13 tests
"AI Generated Post" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
132 characters long description:
This is a plugin for WordPress for creating post, writing content for your blog post, social post, buddypress post , forum post etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,226 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 364 | 630 | 1,698 |
Markdown | 5 | 338 | 0 | 754 |
CSS | 1 | 98 | 1 | 416 |
YAML | 9 | 25 | 2 | 189 |
JSON | 4 | 0 | 0 | 125 |
XML | 1 | 0 | 0 | 39 |
JavaScript | 1 | 3 | 0 | 4 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 36 | 35.64% |
▷ Public methods | 96 | 95.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.95% |
Functions | 37 | |
▷ Named functions | 8 | 21.62% |
▷ Anonymous functions | 29 | 78.38% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected