Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.86ms] Passed 4 tests
An overview of server-side resources used by WP Textbox Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.44 ▼4.95 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.41 ▼10.15 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.38 ▲8.09 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.48 ▼4.28 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.05 ▼0.07 |
Textbox /wp-admin/options-general.php?page=wp_textbox | 3.28 | 31.67 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Illegal file modification detected: 4 files (0.00KB) outside of "wp-content/plugins/textbox/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/textbox/Explicaa\314\201\342\210\206o dos Rest's.txt"
- (new file) "wp-content/plugins/textbox/tests/Exemplos de respostas/Campos obrigat\302\242rios.txt"
- (new file) "wp-content/plugins/textbox/tests/Exemplos de respostas/Token Inv\342\200\240lido.txt"
- (new file) "wp-content/plugins/textbox/tests/Exemplos de respostas/Token n\342\210\206o configurado.txt"
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
wp_textbox_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Textbox Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.07 | 1.65 ▼0.18 | 39.13 ▼6.71 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼1.00 | 108.66 ▼22.08 | 41.67 ▼3.76 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.01 | 40.65 ▲3.08 | 34.44 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 23.37 ▲0.21 | 678.34 ▲20.45 | 50.93 ▼2.96 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.01 | 96.59 ▼1.03 | 42.70 ▲0.21 |
Textbox /wp-admin/options-general.php?page=wp_textbox | 898 | 2.08 | 34.55 | 27.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- wp_textbox_options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/textbox/wp-textbox-settings.php
- > /wp-content/plugins/textbox/wp-textbox-plugin.php
- > /wp-content/plugins/textbox/tests/teste.php
- > /wp-content/plugins/textbox/tests/addPost.php
- > /wp-content/plugins/textbox/tests/getUserList.php
- > /wp-content/plugins/textbox/tests/getCategoryList.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: content marketing, textbox, content
textbox/wp-textbox-plugin.php 92% from 13 tests
"WP Textbox Plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("textbox.php" instead of "wp-textbox-plugin.php")
Code Analysis Passed 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 detected456 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 138 | 85 | 415 |
PO File | 1 | 12 | 12 | 41 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 3 | 10.34% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
PNG images were not found in this plugin