79% yagla

Code Review | Yagla

WordPress plugin Yagla scored79%from 54 tests.

About plugin

  • Plugin page: yagla
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Sep 19, 2019
  • Number of updates: 10
  • Update frequency: every 61.9 days
  • Top authors: yagla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /907 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.30 ▲4.23
Dashboard /wp-admin3.34 ▼0.0044.48 ▼13.74
Posts /wp-admin/edit.php3.39 ▲0.0448.78 ▲2.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0674.79 ▼28.78
Media Library /wp-admin/upload.php3.26 ▲0.0432.76 ▼1.02
Yagla /wp-admin/options-general.php?page=yaglasettings3.2325.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.39 ▼0.991.70 ▲0.0336.38 ▼7.38
Dashboard /wp-admin2,212 ▲235.00 ▼0.94112.11 ▼1.2341.63 ▼0.87
Posts /wp-admin/edit.php2,098 ▲62.07 ▲0.0138.50 ▼3.7333.86 ▼1.41
Add New Post /wp-admin/post-new.php1,519 ▼923.17 ▲4.86652.73 ▲37.6553.73 ▼0.57
Media Library /wp-admin/upload.php1,394 ▲64.21 ▼0.0497.38 ▼0.1042.31 ▲0.33
Yagla /wp-admin/options-general.php?page=yaglasettings9181.9334.3945.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP12213191
CSS1101737
JavaScript1213

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 code0.40
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
FileSize - originalSize - compressedSavings
Yagla-Logo.png9.40KB3.20KB▼ 65.99%