Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.54ms] Passed 4 tests
Server-side resources used by ATALKI - AI Based FAQ Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.48 ▼4.19 |
Dashboard /wp-admin | 3.43 ▲0.12 | 53.03 ▲2.57 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.18 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.21 ▼7.21 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.10 ▼3.29 |
FAQ List /wp-admin/admin.php?page=afg-faq-list | 3.34 | 497.87 |
Atalki - FAQ Generator /wp-admin/admin.php?page=atalki-faq-generator | 3.33 | 34.49 |
Login / Sign Up /wp-admin/admin.php?page=afg-login-signup | 3.33 | 32.16 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for ATALKI - AI Based FAQ Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.60 ▼0.99 | 5.52 ▲3.77 | 38.85 ▼5.22 |
Dashboard /wp-admin | 2,234 ▲43 | 5.83 ▲0.92 | 96.73 ▼1.59 | 38.87 ▼3.98 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.04 ▲0.08 | 35.96 ▼8.42 | 31.65 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,557 ▲38 | 23.07 ▼0.10 | 675.84 ▲72.60 | 52.70 ▼0.41 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.19 ▼0.15 | 100.70 ▼4.45 | 43.09 ▼2.41 |
FAQ List /wp-admin/admin.php?page=afg-faq-list | 727 | 1.90 | 25.74 | 51.60 |
Atalki - FAQ Generator /wp-admin/admin.php?page=atalki-faq-generator | 876 | 1.86 | 30.11 | 58.91 |
Login / Sign Up /wp-admin/admin.php?page=afg-login-signup | 970 | 1.85 | 31.82 | 69.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/atalki-ai-based-faq-generator/admin/partials/atalki-faq-generator-admin-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_admin() on null in wp-content/plugins/atalki-ai-based-faq-generator/admin/partials/afg-link-page-html.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/atalki-ai-based-faq-generator/admin/partials/afg-faq-list-html.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/atalki-ai-based-faq-generator/public/partials/atalki-faq-generator-public-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: ai, atalki, faqs, faq-generator
atalki-ai-based-faq-generator/atalki-faq-generator.php 77% from 13 tests
The main file in "ATALKI - AI Based FAQ Generator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("atalki-ai-based-faq-generator.php" instead of "atalki-faq-generator.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
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 plugin2,049 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 267 | 586 | 961 |
CSS | 4 | 145 | 42 | 954 |
JavaScript | 3 | 20 | 81 | 125 |
SVG | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 2.27MB with 1.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/Atalki illustration 2.png | 112.31KB | 47.25KB | ▼ 57.93% |
admin/images/google.png | 4.54KB | 2.65KB | ▼ 41.59% |
admin/images/Atalki illustration 1.png | 147.58KB | 60.06KB | ▼ 59.31% |
admin/images/facebook-app-symbol.png | 9.29KB | 2.87KB | ▼ 69.16% |
admin/images/Image 9.png | 129.40KB | 44.47KB | ▼ 65.63% |