72% get-in-line

Code Review | Get in line

WordPress plugin Get in line scored72%from 54 tests.

About plugin

  • Plugin page: get-in-line
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: May 21, 2018
  • Number of updates: 15
  • Update frequency: every 0.5 days
  • Top authors: getinline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /764 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.24ms] Passed 4 tests

Analyzing server-side resources used by Get in line
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.25 ▲0.66
Dashboard /wp-admin3.32 ▲0.0146.37 ▼1.76
Posts /wp-admin/edit.php3.37 ▲0.0145.54 ▼6.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.35 ▼13.85
Media Library /wp-admin/upload.php3.24 ▲0.0135.48 ▲1.57
Get-In-Line /wp-admin/admin.php?page=get_in_line3.23361.91
Settings /wp-admin/admin.php?page=wpgil_settings3.1829.70
Records /wp-admin/admin.php?page=wpgil_records3.2530.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
getinline_project_widget
db_upgraded
getinline_project_language
widget_theysaidso_widget
getinline_project_key
widget_recent-comments
getinline_api
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Get in line: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7414.47 ▲0.041.82 ▼0.1943.83 ▼2.40
Dashboard /wp-admin2,237 ▲495.88 ▲1.00102.18 ▼8.5039.87 ▼1.09
Posts /wp-admin/edit.php2,120 ▲282.06 ▼0.1035.03 ▼5.9034.83 ▲1.80
Add New Post /wp-admin/post-new.php1,562 ▲3823.48 ▲0.38679.09 ▲66.5056.75 ▲1.63
Media Library /wp-admin/upload.php1,419 ▲374.20 ▼0.0196.53 ▼3.7642.24 ▼1.54
Get-In-Line /wp-admin/admin.php?page=get_in_line6871.537.4214.47
Settings /wp-admin/admin.php?page=wpgil_settings8622.0423.7224.69
Records /wp-admin/admin.php?page=wpgil_records1,1463.7957.2143.39

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wpgil_settings
    • > Notice in wp-content/plugins/get-in-line/index.php+40
    Undefined index: project_key
    • > GET request to /wp-admin/admin.php?page=wpgil_settings
    • > Notice in wp-content/plugins/get-in-line/index.php+49
    Undefined index: project_widget
    • > GET request to /wp-admin/admin.php?page=wpgil_settings
    • > Notice in wp-content/plugins/get-in-line/index.php+58
    Undefined index: language

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/get-in-line/template/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/get-in-line/core/data.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/get-in-line/template/records.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/get-in-line/index.php:12
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/get-in-line/template/settings.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/get-in-line/template/data.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wpgil_records
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=wpgil_records - Access to XMLHttpRequest at 'https://lk.get-in-line.ru/api?do=wordpress&project=&act=orders_data' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=wpgil_records
    • > Network (severe)
    https://lk.get-in-line.ru/api?do=wordpress&project=&act=orders_data - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #4, #5 in get-in-line/assets to your readme.txt
You can look at the official readme.txt

get-in-line/index.php 92% from 13 tests

"Get in line" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("get-in-line.php" instead of "index.php")

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
No dangerous file extensions were detected28,282 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52,5821,88923,506
SVG1002,671
CSS6206941,885
PHP65015220

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
template/images/sort_desc_disabled.png0.14KB0.25KB0.00%
template/images/sort_asc_disabled.png0.14KB0.25KB0.00%
template/images/sort_desc.png0.15KB0.25KB0.00%
template/images/sort_both.png0.20KB0.29KB0.00%
template/images/sort_asc.png0.16KB0.25KB0.00%