Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.49ms] Passed 4 tests
Server-side resources used by 1Beyt
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.39 ▼4.63 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.46 ▼4.30 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 55.97 ▲6.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.27 ▼4.73 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.45 ▼4.30 |
یک بیت شعر /wp-admin/admin.php?page=ob_page | 3.23 | 31.04 |
ربات یک بیت شعر /wp-admin/admin.php?page=ob_robot | 3.23 | 32.37 |
Server storage [IO: ▲1.21MB] [DB: ▲0.82MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 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, 8 new options
New tables |
---|
wp_poems |
New WordPress options |
---|
YEK_BEYT_VER |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_ob_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for 1Beyt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 14.10 ▼0.42 | 1.82 ▼0.26 | 46.55 ▼0.46 |
Dashboard /wp-admin | 2,221 ▲47 | 5.55 ▼0.10 | 84.54 ▼2.52 | 78.90 ▲35.91 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.99 ▼0.02 | 38.03 ▼5.37 | 39.35 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 22.98 ▼0.69 | 670.63 ▲4.34 | 164.57 ▲110.70 |
Media Library /wp-admin/upload.php | 1,429 ▲35 | 4.23 ▲0.03 | 98.90 ▼11.80 | 80.11 ▲30.46 |
یک بیت شعر /wp-admin/admin.php?page=ob_page | 856 | 2.00 | 26.14 | 58.84 |
ربات یک بیت شعر /wp-admin/admin.php?page=ob_robot | 831 | 2.15 | 28.47 | 41.97 |
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
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_poems
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_ob_widget
- theysaidso_admin_options
- YEK_BEYT_VER
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 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
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/1beyt/help.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/1beyt/inc/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/1beyt/inc/ob_shortcode.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Screen shot (screenshot-1.png) Distich Widget.)
1beyt/1beyt.php 92% from 13 tests
This is the main PHP file of "1Beyt" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.40MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 21.92KB | 3.16KB | ▼ 85.58% |
icon-256x256.png | 112.30KB | 42.83KB | ▼ 61.86% |
images/icon.png | 0.35KB | 0.49KB | 0.00% |
screenshot-2.png | 10.90KB | 5.36KB | ▼ 50.83% |
screenshot-1.png | 35.95KB | 14.54KB | ▼ 59.54% |