Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.10ms] Passed 4 tests
A check of server-side resources used by TNC AI Excerpt Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.92 ▼4.01 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.36 ▲0.59 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.01 ▼3.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.63 ▼15.08 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.12 ▼1.75 |
TNC AI Excerpt /wp-admin/options-general.php?page=tnc-ai-excerpt-generator | 3.24 | 30.42 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
ai_excerpt_gen_api_key |
ai_excerpt_gen_post_types_enabled |
widget_recent-posts |
ai_excerpt_gen_max_token |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
ai_excerpt_gen_model |
Browser metrics Passed 4 tests
Checking browser requirements for TNC AI Excerpt Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼0.99 | 1.81 ▲0.24 | 45.53 ▼1.30 |
Dashboard /wp-admin | 2,210 ▲18 | 4.87 ▼0.03 | 101.28 ▼7.37 | 39.44 ▼4.26 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.04 | 35.48 ▼5.82 | 33.59 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.36 ▲0.15 | 643.85 ▼23.62 | 52.00 ▼16.78 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.01 | 94.99 ▼2.22 | 41.52 ▼2.77 |
TNC AI Excerpt /wp-admin/options-general.php?page=tnc-ai-excerpt-generator | 880 | 2.14 | 21.61 | 30.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- ai_excerpt_gen_model
- ai_excerpt_gen_max_token
- ai_excerpt_gen_api_key
- db_upgraded
- ai_excerpt_gen_post_types_enabled
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tnc-ai-excerpt-generator/tnc-ai-excerpt-generator.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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:
- Donate link: Invalid url: ""
tnc-ai-excerpt-generator/tnc-ai-excerpt-generator.php Passed 13 tests
The main file in "TNC AI Excerpt Generator" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
Automatically generates a excerpt of posts and saves it as an excerpt using OpenAI's GPT-3 language model.
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
No dangerous file extensions were detected193 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 32 | 193 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 1.68MB with 0.98MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-2.png | 701.74KB | 301.85KB | ▼ 56.99% |
screenshots/screenshot-1.png | 1,016.30KB | 409.56KB | ▼ 59.70% |