Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.55MB] [CPU: ▼18.15ms] Passed 4 tests
A check of server-side resources used by OPEN-BRAIN
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.92 ▼7.94 |
Dashboard /wp-admin | 3.45 ▲0.15 | 54.21 ▼1.36 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 55.79 ▼0.32 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.57 | 42.25 ▼62.97 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 45.40 ▲5.68 |
Image /wp-admin/admin.php?page=open_brain_image | 3.34 | 35.40 |
Content /wp-admin/admin.php?page=open_brain_content | 3.34 | 34.05 |
Settings /wp-admin/admin.php?page=open-brain | 3.34 | 33.73 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
open-brain-plugin |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by OPEN-BRAIN
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.10 ▼0.25 | 1.67 ▼0.21 | 41.01 ▼3.46 |
Dashboard /wp-admin | 2,245 ▲68 | 5.67 ▲0.01 | 96.09 ▲7.29 | 41.87 ▼7.39 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.04 ▲0.05 | 41.47 ▲1.51 | 38.96 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,564 ▲32 | 18.61 ▼4.56 | 632.80 ▼67.33 | 61.63 ▼3.58 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.29 ▲0.07 | 100.33 ▼9.99 | 41.41 ▼6.86 |
Image /wp-admin/admin.php?page=open_brain_image | 967 | 1.69 | 24.99 | 31.32 |
Content /wp-admin/admin.php?page=open_brain_content | 1,071 | 1.66 | 32.61 | 28.25 |
Settings /wp-admin/admin.php?page=open-brain | 948 | 1.68 | 26.78 | 25.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'open_brain_plugin' does not have a method 'uninstall'
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- open-brain-plugin
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/open-brain/index.php
- > /wp-content/plugins/open-brain/api.inc.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)
No browser issues were found
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
4 plugin tags: openai, chatgpt, content creator, ai
open-brain/index.php 92% from 13 tests
The main file in "OPEN-BRAIN" v. 0.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("open-brain.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin853 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 10 | 16 | 595 |
JavaScript | 1 | 1 | 8 | 170 |
CSS | 1 | 5 | 0 | 47 |
Markdown | 1 | 26 | 0 | 32 |
SVG | 3 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin