78% ca-yaturbo

Code Review | Easy Ya.Turbo Pages

WordPress plugin Easy Ya.Turbo Pages scored78%from 54 tests.

About plugin

  • Plugin page: ca-yaturbo
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2017
  • Latest release: Jun 4, 2020
  • Number of updates: 26
  • Update frequency: every 34.8 days
  • Top authors: consultapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.15ms] Passed 4 tests

This is a short check of server-side resources used by Easy Ya.Turbo Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.48 ▼4.99
Dashboard /wp-admin3.35 ▲0.0447.96 ▼3.76
Posts /wp-admin/edit.php3.46 ▲0.1051.79 ▲1.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.01 ▼11.79
Media Library /wp-admin/upload.php3.27 ▲0.0439.00 ▼0.07
Yandex Turbo Pages /wp-admin/options-general.php?page=ca_yaturbo3.2135.62

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
rss_language
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Easy Ya.Turbo Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▼0.002.09 ▲0.0243.52 ▼0.61
Dashboard /wp-admin2,199 ▲225.65 ▲0.0887.80 ▼14.1642.38 ▼0.12
Posts /wp-admin/edit.php2,104 ▲42.08 ▲0.0838.70 ▲2.5434.49 ▼1.32
Add New Post /wp-admin/post-new.php1,540 ▲318.29 ▲0.12636.70 ▲23.0265.93 ▼2.43
Media Library /wp-admin/upload.php1,407 ▲104.36 ▲0.17100.98 ▼0.9143.12 ▼1.61
Yandex Turbo Pages /wp-admin/options-general.php?page=ca_yaturbo8662.0127.4531.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • rss_language
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ca_yaturbo
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ca_yaturbo
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ca_yaturbo
    • > Notice in wp-content/plugins/ca-yaturbo/ca-yaturbo.php+59
    Undefined index: flush_rules

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/ca-yaturbo/yaturbo-template.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ca-yaturbo/ca-yaturbo.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
3 plugin tags: turbo, pages, yandex

ca-yaturbo/ca-yaturbo.php 92% from 13 tests

The principal PHP file in "Easy Ya.Turbo Pages" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)

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 detected256 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23737256

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin