Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼1.37ms] Passed 4 tests
This is a short check of server-side resources used by AI Mojo - ChatGPT / GPT-3 Playground for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 40.00 ▼1.63 |
Dashboard /wp-admin | 3.97 ▲0.67 | 50.63 ▲4.05 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 47.62 ▼3.73 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 85.59 ▼4.17 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 37.54 ▲6.67 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.22 | 36.05 |
Server storage [IO: ▲5.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 267 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
AI Mojo - ChatGPT / GPT-3 Playground for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲86 | 14.69 ▲0.63 | 1.83 ▲0.07 | 30.56 ▼13.58 |
Dashboard /wp-admin | 2,228 ▲54 | 5.50 ▼0.09 | 84.47 ▼7.58 | 41.62 ▼4.12 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 1.96 ▼0.04 | 37.73 ▲0.03 | 35.00 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 24.51 ▲1.31 | 692.32 ▲4.65 | 62.28 ▼7.16 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.20 ▼0.02 | 97.87 ▼0.94 | 44.36 ▼1.07 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,088 | 1.67 | 25.36 | 28.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/ai-mojo/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_active_plugins
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WIMJ_PATH - assumed 'WIMJ_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-mojo/includes/freemius.php on line 20
- > PHP Warning
require_once(WIMJ_PATH/freemius/start.php): failed to open stream: No such file or directory in wp-content/plugins/ai-mojo/includes/freemius.php on line 20
- > PHP Fatal error
require_once(): Failed opening required 'WIMJ_PATH/freemius/start.php' (include_path='.:/usr/share/php') in wp-content/plugins/ai-mojo/includes/freemius.php on line 20
- > PHP Warning
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 93% 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
9 plugin tags: openai, jurassic-1, gpt-3, gpt3, ai content generation...
ai-mojo/wpaimojo.php 85% from 13 tests
This is the main PHP file of "AI Mojo - ChatGPT / GPT-3 Playground for WordPress" version 0.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("ai-mojo.php" instead of "wpaimojo.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected39,758 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 8,905 | 19,430 | 38,248 |
PO File | 1 | 564 | 923 | 1,283 |
JavaScript | 5 | 34 | 59 | 196 |
XML | 1 | 3 | 0 | 16 |
CSS | 15 | 0 | 0 | 15 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 60.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 2 | 2.25% |
▷ Concrete classes | 87 | 97.75% |
▷ Final classes | 0 | 0.00% |
Methods | 1,478 | |
▷ Static methods | 225 | 15.22% |
▷ Public methods | 1,022 | 69.15% |
▷ Protected methods | 17 | 1.15% |
▷ Private methods | 439 | 29.70% |
Functions | 171 | |
▷ Named functions | 135 | 78.95% |
▷ Anonymous functions | 36 | 21.05% |
Constants | 152 | |
▷ Global constants | 102 | 67.11% |
▷ Class constants | 50 | 32.89% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wpaimojo.png | 3.15KB | 2.85KB | ▼ 9.48% |
(invalid) freemius/assets/img/ai-mojo.png | 28.98KB | 0.00KB | ▼ 100.00% |
assets/images/onboarding-3.png | 59.17KB | 65.06KB | 0.00% |
freemius/assets/img/wizardly-ai-main.png | 8.79KB | 9.39KB | 0.00% |
assets/images/onboarding-2.png | 26.37KB | 28.51KB | 0.00% |