Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.32MB] [CPU: ▼3.62ms] Passed 4 tests
An overview of server-side resources used by TextBuilder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 43.38 ▼0.74 |
Dashboard /wp-admin | 3.65 ▲0.35 | 51.22 ▼5.84 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 59.71 ▲9.01 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 97.44 ▼7.66 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 38.42 ▼0.24 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for TextBuilder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲150 | 14.11 ▼0.24 | 4.97 ▲3.21 | 41.66 ▼1.19 |
Dashboard /wp-admin | 2,211 ▲20 | 5.86 ▼0.04 | 99.31 ▼7.70 | 74.32 ▲28.24 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.99 ▼0.05 | 38.81 ▲1.00 | 35.00 ▼0.78 |
Add New Post /wp-admin/post-new.php | 6,364 ▲4,831 | 27.78 ▲4.68 | 905.87 ▲219.56 | 36.11 ▼16.07 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.26 ▼0.01 | 102.19 ▼13.07 | 74.91 ▲25.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/textbuilder/textBuilder.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/textbuilder/Includes/Admin/View/TokenTable.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: textbuilder, builder, ai, gpt3, gpt...
textbuilder/textBuilder.php 92% from 13 tests
This is the main PHP file of "TextBuilder" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("textbuilder.php" instead of "textBuilder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,212 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 386 | 886 | 1,833 |
JavaScript | 8 | 38 | 83 | 245 |
Sass | 4 | 8 | 0 | 47 |
CSS | 3 | 3 | 11 | 43 |
JSON | 2 | 0 | 0 | 32 |
Markdown | 1 | 4 | 0 | 12 |
PHP code Passed 2 tests
An short overview of 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.43 |
Average class complexity | 15.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 20 | 16.26% |
▷ Public methods | 105 | 85.37% |
▷ Protected methods | 11 | 8.94% |
▷ Private methods | 7 | 5.69% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/tb-logo.png | 1.41KB | 0.64KB | ▼ 54.69% |
public/img/intro-menu-logo.png | 4.73KB | 2.82KB | ▼ 40.42% |