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.07MB] [CPU: ▼0.07ms] Passed 4 tests
An overview of server-side resources used by WeText
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.59 ▲2.82 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.59 ▲0.22 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 49.82 ▲2.99 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 90.62 ▼3.63 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.11 ▲0.29 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WeText
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.44 ▲0.14 | 1.93 ▲0.23 | 44.15 ▲2.49 |
Dashboard /wp-admin | 2,224 ▲38 | 4.94 ▼0.06 | 100.23 ▼16.40 | 72.89 ▲30.92 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.01 ▼0.02 | 37.87 ▲0.99 | 34.38 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,527 ▼7 | 23.07 ▼0.20 | 702.84 ▲13.08 | 54.70 ▼19.92 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.13 ▼0.07 | 103.45 ▼1.50 | 47.34 ▲1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wetext/wetext_plugin.php+31
unlink(): http does not allow unlinking
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/wetext/includes/class_wetext_settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/wetext/includes/left_panel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/wetext/includes/left_panel.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
10 plugin tags: text message, sms, discounts, 2fa, two factor authentication...
wetext/wetext_plugin.php 85% from 13 tests
This is the main PHP file of "WeText" 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:
- Description: Keep the plugin description shorter than 140 characters (currently 416 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wetext.php" instead of "wetext_plugin.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
Success! There were no dangerous files found in this plugin3,993 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 533 | 108 | 2,803 |
JavaScript | 5 | 43 | 106 | 834 |
CSS | 3 | 62 | 46 | 356 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wetextplugin.png | 1.39KB | 0.58KB | ▼ 58.49% |
images/trans.png | 0.33KB | 0.09KB | ▼ 71.22% |
images/ticMobile.png | 22.03KB | 8.54KB | ▼ 61.22% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/double_tick.png | 1.08KB | 0.21KB | ▼ 80.69% |