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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.39ms] Passed 4 tests
This is a short check of server-side resources used by Yagla
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.30 ▲4.23 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.48 ▼13.74 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.78 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 74.79 ▼28.78 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 32.76 ▼1.02 |
Yagla /wp-admin/options-general.php?page=yaglasettings | 3.23 | 25.76 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Yagla
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.39 ▼0.99 | 1.70 ▲0.03 | 36.38 ▼7.38 |
Dashboard /wp-admin | 2,212 ▲23 | 5.00 ▼0.94 | 112.11 ▼1.23 | 41.63 ▼0.87 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.07 ▲0.01 | 38.50 ▼3.73 | 33.86 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 23.17 ▲4.86 | 652.73 ▲37.65 | 53.73 ▼0.57 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.21 ▼0.04 | 97.38 ▼0.10 | 42.31 ▲0.33 |
Yagla /wp-admin/options-general.php?page=yaglasettings | 918 | 1.93 | 34.39 | 45.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yagla/yagla.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=yaglasettings
- > Network (severe)
wp-content/plugins/yagla/css/img/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=yaglasettings
- > Network (severe)
wp-content/plugins/yagla/css/img/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=yaglasettings
- > Network (severe)
wp-content/plugins/yagla/css/img/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=yaglasettings
- > Network (severe)
wp-content/plugins/yagla/css/img/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: yagla, yaglaru
yagla/yagla.php Passed 13 tests
"Yagla" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Плагин для работы с сервисом yagla.ru.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin231 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 13 | 191 |
CSS | 1 | 10 | 17 | 37 |
JavaScript | 1 | 2 | 1 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Yagla-Logo.png | 9.40KB | 3.20KB | ▼ 65.99% |