Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.21ms] Passed 4 tests
A check of server-side resources used by Yandex.Zen PostGrid
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 42.10 ▼2.87 |
Dashboard /wp-admin | 3.45 ▲0.11 | 59.28 ▲6.20 |
Posts /wp-admin/edit.php | 3.57 ▲0.17 | 52.82 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.11 | 89.47 ▼18.54 |
Media Library /wp-admin/upload.php | 3.38 ▲0.11 | 39.23 ▲4.33 |
Yandex.Zen PostGrid /wp-admin/options-general.php?page=yg-settings | 3.32 | 31.67 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Yandex.Zen PostGrid
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▲0.13 | 1.83 ▲0.04 | 41.58 ▼3.26 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.14 | 89.55 ▼1.74 | 39.65 ▼4.29 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.03 | 36.59 ▼7.75 | 32.38 ▼6.16 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.13 ▲4.90 | 679.06 ▼4.03 | 57.86 ▼7.21 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▼0.02 | 115.46 ▲5.70 | 48.30 ▲7.18 |
Yandex.Zen PostGrid /wp-admin/options-general.php?page=yg-settings | 972 | 2.13 | 29.59 | 36.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 24 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yg-settings
- > Notice in wp-content/plugins/display-yandex-zen-postgrid/yandex-zen-postgrid.php+132
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/display-yandex-zen-postgrid/yandex-zen-postgrid.php:204
- > PHP Fatal error
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add a description for screenshot #3 in display-yandex-zen-postgrid/assets to your readme.txt
display-yandex-zen-postgrid/yandex-zen-postgrid.php 92% from 13 tests
Analyzing the main PHP file in "Yandex.Zen PostGrid" version 0.5
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("display-yandex-zen-postgrid.php" instead of "yandex-zen-postgrid.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,572 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 549 | 495 | 2,403 |
Markdown | 1 | 40 | 0 | 76 |
JSON | 1 | 0 | 0 | 58 |
CSS | 2 | 3 | 0 | 34 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 5.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 9 | 8.41% |
▷ Public methods | 86 | 80.37% |
▷ Protected methods | 18 | 16.82% |
▷ Private methods | 3 | 2.80% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 47 | |
▷ Global constants | 30 | 63.83% |
▷ Class constants | 17 | 36.17% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin