Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼4.24ms] Passed 4 tests
A check of server-side resources used by Byte's PHP Code Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.64 ▼0.27 |
Dashboard /wp-admin | 3.36 ▲0.05 | 61.28 ▲9.87 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.91 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.63 ▼17.32 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.09 ▲0.92 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options |
---|
bytes_before_post_bool |
bytes_post_code |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_wp_vxbeyz_code_widget |
widget_theysaidso_widget |
widget_recent-comments |
bytes_after_post_bool |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Byte's PHP Code Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.39 ▼0.14 | 1.68 ▲0.09 | 40.25 ▼5.30 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▼0.02 | 85.33 ▼0.78 | 40.22 ▼3.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.07 | 35.98 ▼5.82 | 37.39 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.53 | 664.02 ▼43.04 | 64.96 ▲4.11 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.06 | 103.74 ▼4.60 | 46.25 ▼2.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_wp_vxbeyz_code_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/byte-php-code/bytes-php-code.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The screenshot description corresponds to screenshot-1.jpg.) image not found
byte-php-code/bytes-php-code.php 92% from 13 tests
The main PHP file in "Byte's PHP Code Widget" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("byte-php-code.php" instead of "bytes-php-code.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin252 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 55 | 252 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected