Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.39MB] [CPU: ▲23.86ms] 75% from 4 tests
An overview of server-side resources used by ChatPressAI - AI Supported Blogging and Reasearch
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.39MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.24 ▲5.77 | 70.53 ▲29.33 |
Dashboard /wp-admin | 9.26 ▲5.91 | 72.69 ▲11.56 |
Posts /wp-admin/edit.php | 9.26 ▲5.90 | 73.83 ▲22.16 |
Add New Post /wp-admin/post-new.php | 9.89 ▲4.00 | 124.86 ▲32.37 |
Media Library /wp-admin/upload.php | 9.26 ▲6.02 | 68.21 ▲33.20 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.26 | 57.39 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 209 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
fs_active_plugins |
fs_accounts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
fs_debug_mode |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ChatPressAI - AI Supported Blogging and Reasearch
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲165 | 13.33 ▼0.93 | 8.15 ▲6.48 | 30.82 ▼12.53 |
Dashboard /wp-admin | 2,234 ▲57 | 5.59 ▲0.02 | 90.92 ▲2.20 | 44.14 ▲2.24 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.00 ▼0.02 | 38.61 ▼0.73 | 35.02 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,590 ▲64 | 22.72 ▼0.16 | 623.62 ▼133.46 | 65.73 ▲1.52 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.16 ▼0.06 | 97.93 ▼3.88 | 47.23 ▲4.27 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,088 | 1.69 | 30.14 | 31.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/chatpressai/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- fs_accounts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/chatpressai/admin/partials/chatpressai-admin-display.php
- > /wp-content/plugins/chatpressai/public/partials/chatpressai-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
3 plugin tags: openai, chatgpt, ai
chatpressai/chatpressai.php 92% from 13 tests
The principal PHP file in "ChatPressAI - AI Supported Blogging and Reasearch" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 415 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected34,880 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 8,338 | 18,301 | 34,269 |
JavaScript | 5 | 39 | 59 | 360 |
CSS | 15 | 49 | 8 | 246 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 72.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,349 | |
▷ Static methods | 220 | 16.31% |
▷ Public methods | 941 | 69.76% |
▷ Protected methods | 17 | 1.26% |
▷ Private methods | 391 | 28.98% |
Functions | 106 | |
▷ Named functions | 104 | 98.11% |
▷ Anonymous functions | 2 | 1.89% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |