Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼290.70ms] Passed 4 tests
Server-side resources used by 1Beyt
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 57.90 ▲2.62 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.40 ▼5.53 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 42.11 ▲4.09 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 100.89 ▼1,157.83 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 27.75 ▼2.05 |
ربات یک بیت شعر /wp-admin/admin.php?page=ob_robot | 3.30 | 24.58 |
یک بیت شعر /wp-admin/admin.php?page=ob_page | 3.30 | 22.10 |
Server storage [IO: ▲1.21MB] [DB: ▲0.82MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/1beyt/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/1beyt/banner-772\303\227250.png"
Filesystem: 17 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_poems |
New WordPress options |
---|
YEK_BEYT_VER |
widget_ob_widget |
Browser metrics Passed 4 tests
1Beyt: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲95 | 15.44 ▼0.19 | 6.07 ▲0.07 | 1.92 ▼0.62 |
Dashboard /wp-admin | 2,924 ▲63 | 6.24 ▲0.08 | 119.63 ▼54.11 | 251.63 ▲84.49 |
Posts /wp-admin/edit.php | 2,725 ▲34 | 3.12 ▼0.11 | 65.09 ▲0.84 | 148.97 ▼25.95 |
Add New Post /wp-admin/post-new.php | 1,774 ▲113 | 21.02 ▲4.57 | 441.14 ▲25.82 | 210.93 ▲56.21 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.49 ▼0.03 | 126.26 ▼44.29 | 277.80 ▲88.82 |
ربات یک بیت شعر /wp-admin/admin.php?page=ob_robot | 1,038 | 2.38 | 52.83 | 168.74 |
یک بیت شعر /wp-admin/admin.php?page=ob_page | 1,077 | 2.37 | 56.86 | 182.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.82MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_poems
- The uninstall procedure has failed, leaving 2 options in the database
- YEK_BEYT_VER
- widget_ob_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/1beyt/inc/robot.php
- 4× 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/1beyt/help.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/1beyt/inc/ob_shortcode.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/1beyt/inc/widget.php:2
- > PHP Warning
Use of undefined constant OB4WP_URL - assumed 'OB4WP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/1beyt/inc/robot.php on line 12
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Screen shot (screenshot-1.png) Distich Widget.) image missing
1beyt/1beyt.php 92% from 13 tests
The main file in "1Beyt" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,192 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 0 | 0 | 6,006 |
PHP | 5 | 32 | 22 | 186 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
8 PNG files occupy 0.40MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.35KB | 0.49KB | 0.00% |
banner-772×250.png | 81.26KB | 25.53KB | ▼ 68.58% |
images/tel_bot2.png | 57.02KB | 15.61KB | ▼ 72.62% |
images/logo.png | 21.92KB | 3.16KB | ▼ 85.58% |
images/logo2.png | 94.53KB | 39.63KB | ▼ 58.08% |