Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.59ms] Passed 4 tests
An overview of server-side resources used by Widget for Zen
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.85 ▼2.39 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.98 ▼1.90 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.76 ▲4.69 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 96.51 ▼7.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.66 ▼2.12 |
Widget for Zen /wp-admin/options-general.php?page=zw-settings | 3.28 | 35.17 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_zen_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widget for Zen
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.40 ▼0.18 | 1.74 ▼0.30 | 42.65 ▼6.59 |
Dashboard /wp-admin | 2,207 ▲18 | 5.90 ▲1.01 | 109.14 ▼16.57 | 43.75 ▼2.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.01 | 39.74 ▲0.94 | 35.86 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.42 ▼4.72 | 614.06 ▼25.52 | 49.81 ▼2.05 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▼0.10 | 96.30 ▼8.37 | 44.06 ▲2.12 |
Widget for Zen /wp-admin/options-general.php?page=zw-settings | 909 | 2.08 | 29.02 | 33.05 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_zen_widget
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/widget-for-yandex-zen/option.php:216
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/widget-for-yandex-zen/option.php:216
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: zen widget, widget, yandex zen, zen
widget-for-yandex-zen/widget-for-yandex-zen.php Passed 13 tests
"Widget for Zen" version 1.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
This plugin provides Widget for Zen Blogging Platform.
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 detected357 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 65 | 325 |
CSS | 1 | 2 | 0 | 32 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/zen-icon-32.png | 0.97KB | 1.07KB | 0.00% |
images/zen_logo_red_32.png | 0.79KB | 0.79KB | 0.00% |
images/zen_logo_star_32.png | 1.87KB | 1.75KB | ▼ 6.33% |
images/zen_logo_broken_32.png | 1.16KB | 1.07KB | ▼ 7.98% |
images/zen_logo_blue_32.png | 2.78KB | 1.07KB | ▼ 61.53% |