68% 1beyt

Code Review | 1Beyt

WordPress plugin 1Beyt scored 68% from 54 tests.

About plugin

  • Plugin page: 1beyt
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Mar 15, 2016
  • Latest release: Jun 20, 2019
  • Number of updates: 14
  • Update frequency: every 85.1 days
  • Top authors: ham3da (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,987 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0457.90 ▲2.62
Dashboard /wp-admin3.45 ▲0.0433.40 ▼5.53
Posts /wp-admin/edit.php3.68 ▲0.0442.11 ▲4.09
Add New Post /wp-admin/post-new.php6.92 ▼0.05100.89 ▼1,157.83
Media Library /wp-admin/upload.php3.33 ▲0.0327.75 ▼2.05
ربات یک بیت شعر /wp-admin/admin.php?page=ob_robot3.3024.58
یک بیت شعر /wp-admin/admin.php?page=ob_page3.3022.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
New WordPress options

Browser metrics Passed 4 tests

1Beyt: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲9515.44 ▼0.196.07 ▲0.071.92 ▼0.62
Dashboard /wp-admin2,924 ▲636.24 ▲0.08119.63 ▼54.11251.63 ▲84.49
Posts /wp-admin/edit.php2,725 ▲343.12 ▼0.1165.09 ▲0.84148.97 ▼25.95
Add New Post /wp-admin/post-new.php1,774 ▲11321.02 ▲4.57441.14 ▲25.82210.93 ▲56.21
Media Library /wp-admin/upload.php1,726 ▲285.49 ▼0.03126.26 ▼44.29277.80 ▲88.82
ربات یک بیت شعر /wp-admin/admin.php?page=ob_robot1,0382.3852.83168.74
یک بیت شعر /wp-admin/admin.php?page=ob_page1,0772.3756.86182.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
    • 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

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


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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.14
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
banner-772×250.png81.26KB25.53KB▼ 68.58%
images/tel_bot2.png57.02KB15.61KB▼ 72.62%
images/logo.png21.92KB3.16KB▼ 85.58%
images/logo2.png94.53KB39.63KB▼ 58.08%